Home
last modified time | relevance | path

Searched refs:expected_mode (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_dumbdbm.py51 expected_mode = 0635
55 expected_mode = 0666
59 self.assertEqual(stat.S_IMODE(st.st_mode), expected_mode)
61 self.assertEqual(stat.S_IMODE(st.st_mode), expected_mode)
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dbeta_test.py210 expected_mode = (a - 1) / (a + b - 2)
213 self.assertAllClose(expected_mode, self.evaluate(dist.mode()))
233 expected_mode = (a - 1) / (a + b - 2)
234 expected_mode[0] = np.nan
236 self.assertAllClose(expected_mode, self.evaluate(dist.mode()))
242 expected_mode = (a - 1) / (a + b - 2)
243 expected_mode[0] = np.nan
245 self.assertAllClose(expected_mode, self.evaluate(dist.mode()))
Ddirichlet_test.py220 expected_mode = (alpha - 1) / (np.sum(alpha) - 3)
223 self.assertAllClose(self.evaluate(dirichlet.mode()), expected_mode)
236 expected_mode = np.zeros_like(alpha) + np.nan
239 self.assertAllClose(self.evaluate(dirichlet.mode()), expected_mode)
/external/python/cpython3/Lib/test/
Dtest_uu.py234 expected_mode = 0o444
236 f.write(encodedtextwrapped(expected_mode, self.tmpout))
239 self.addCleanup(os.chmod, self.tmpout, expected_mode | stat.S_IWRITE)
246 expected_mode
Dtest_dbm_dumb.py51 expected_mode = 0o635
55 expected_mode = 0o666
59 self.assertEqual(stat.S_IMODE(st.st_mode), expected_mode)
61 self.assertEqual(stat.S_IMODE(st.st_mode), expected_mode)
Dtest_subprocess.py1958 expected_mode = 0o624
1959 self.assertEqual(expected_mode, st_mode,
/external/libchrome/base/memory/
Dplatform_shared_memory_region_posix.cc35 bool CheckFDAccessMode(int fd, int expected_mode) { in CheckFDAccessMode() argument
43 if (mode != expected_mode) { in CheckFDAccessMode()
45 << ") differs from expected (" << expected_mode << ")"; in CheckFDAccessMode()
/external/libchrome/base/files/
Dfile_util_unittest.cc996 int expected_mode; in TEST_F() local
999 expected_mode = 0755; in TEST_F()
1001 expected_mode = 0644; in TEST_F()
1003 expected_mode = 0600; in TEST_F()
1005 EXPECT_EQ(expected_mode, mode); in TEST_F()
1009 expected_mode = 0755; in TEST_F()
1011 expected_mode = 0644; in TEST_F()
1013 expected_mode = 0600; in TEST_F()
1015 EXPECT_EQ(expected_mode, mode); in TEST_F()
1019 expected_mode = 0600; in TEST_F()
[all …]
/external/libbrillo/brillo/streams/
Dfake_stream_test.cc469 Stream::AccessMode expected_mode) { in TEST_F() argument
471 EXPECT_EQ(static_cast<int>(expected_mode), static_cast<int>(mode)); in TEST_F()