/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_pow.py | 8 self.assertEqual(pow(type(i), 0), 1) 9 self.assertEqual(pow(type(i), 1), type(i)) 10 self.assertEqual(pow(type(0), 1), type(0)) 11 self.assertEqual(pow(type(1), 1), type(1)) 14 self.assertEqual(pow(type(i), 3), i*i*i) 18 self.assertEqual(pow(2, i), pow2) 39 asseq = self.assertEqual 70 self.assertEqual(pow(3,3) % 8, pow(3,3,8)) 71 self.assertEqual(pow(3,3) % -8, pow(3,3,-8)) 72 self.assertEqual(pow(3,2) % -2, pow(3,2,-2) [all...] |
test_iter.py | 61 self.assertEqual(res, seq) 68 self.assertEqual(res, seq) 93 self.assertEqual(res, TRIPLETS) 100 self.assertEqual(res, TRIPLETS) 106 self.assertEqual(res, TRIPLETS) 175 self.assertEqual(res, range(10)) 191 self.assertEqual(res, range(10)) 259 self.assertEqual(list(SequenceClass(5)), range(5)) 260 self.assertEqual(list(SequenceClass(0)), []) 261 self.assertEqual(list(()), [] [all...] |
test_long.py | 125 eq = self.assertEqual 196 self.assertEqual(x, y, 200 eq = self.assertEqual 230 eq = self.assertEqual 245 eq = self.assertEqual 292 self.assertEqual(got, expected, msg) 293 self.assertEqual(long(got, 0), x, Frm('long("%s", 0) != %r', got, x)) 300 self.assertEqual(got, expected, msg) 311 self.assertEqual(long(314), 314L) 312 self.assertEqual(long(3.14), 3L [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_pow.py | 8 self.assertEqual(pow(type(i), 0), 1) 9 self.assertEqual(pow(type(i), 1), type(i)) 10 self.assertEqual(pow(type(0), 1), type(0)) 11 self.assertEqual(pow(type(1), 1), type(1)) 14 self.assertEqual(pow(type(i), 3), i*i*i) 18 self.assertEqual(pow(2, i), pow2) 39 asseq = self.assertEqual 70 self.assertEqual(pow(3,3) % 8, pow(3,3,8)) 71 self.assertEqual(pow(3,3) % -8, pow(3,3,-8)) 72 self.assertEqual(pow(3,2) % -2, pow(3,2,-2) [all...] |
test_iter.py | 61 self.assertEqual(res, seq) 68 self.assertEqual(res, seq) 93 self.assertEqual(res, TRIPLETS) 100 self.assertEqual(res, TRIPLETS) 106 self.assertEqual(res, TRIPLETS) 175 self.assertEqual(res, range(10)) 191 self.assertEqual(res, range(10)) 259 self.assertEqual(list(SequenceClass(5)), range(5)) 260 self.assertEqual(list(SequenceClass(0)), []) 261 self.assertEqual(list(()), [] [all...] |
test_long.py | 125 eq = self.assertEqual 196 self.assertEqual(x, y, 200 eq = self.assertEqual 230 eq = self.assertEqual 245 eq = self.assertEqual 292 self.assertEqual(got, expected, msg) 293 self.assertEqual(long(got, 0), x, Frm('long("%s", 0) != %r', got, x)) 300 self.assertEqual(got, expected, msg) 311 self.assertEqual(long(314), 314L) 312 self.assertEqual(long(3.14), 3L [all...] |
/external/protobuf/python/google/protobuf/internal/ |
generator_test.py | 68 self.assertEqual( 76 self.assertEqual(4, unittest_pb2.FOREIGN_FOO) 77 self.assertEqual(5, unittest_pb2.FOREIGN_BAR) 78 self.assertEqual(6, unittest_pb2.FOREIGN_BAZ) 81 self.assertEqual(1, proto.FOO) 82 self.assertEqual(1, unittest_pb2.TestAllTypes.FOO) 83 self.assertEqual(2, proto.BAR) 84 self.assertEqual(2, unittest_pb2.TestAllTypes.BAR) 85 self.assertEqual(3, proto.BAZ) 86 self.assertEqual(3, unittest_pb2.TestAllTypes.BAZ [all...] |
test_util.py | 423 test_case.assertEqual(101, message.optional_int32) 424 test_case.assertEqual(102, message.optional_int64) 425 test_case.assertEqual(103, message.optional_uint32) 426 test_case.assertEqual(104, message.optional_uint64) 427 test_case.assertEqual(105, message.optional_sint32) 428 test_case.assertEqual(106, message.optional_sint64) 429 test_case.assertEqual(107, message.optional_fixed32) 430 test_case.assertEqual(108, message.optional_fixed64) 431 test_case.assertEqual(109, message.optional_sfixed32) 432 test_case.assertEqual(110, message.optional_sfixed64 [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_iter.py | 61 self.assertEqual(res, seq) 68 self.assertEqual(res, seq) 93 self.assertEqual(res, TRIPLETS) 100 self.assertEqual(res, TRIPLETS) 106 self.assertEqual(res, TRIPLETS) 175 self.assertEqual(res, range(10)) 191 self.assertEqual(res, range(10)) 259 self.assertEqual(list(SequenceClass(5)), range(5)) 260 self.assertEqual(list(SequenceClass(0)), []) 261 self.assertEqual(list(()), [] [all...] |
test_long.py | 125 eq = self.assertEqual 196 self.assertEqual(x, y, 200 eq = self.assertEqual 230 eq = self.assertEqual 245 eq = self.assertEqual 292 self.assertEqual(got, expected, msg) 293 self.assertEqual(long(got, 0), x, Frm('long("%s", 0) != %r', got, x)) 300 self.assertEqual(got, expected, msg) 311 self.assertEqual(long(314), 314L) 312 self.assertEqual(long(3.14), 3L [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_iter.py | 61 self.assertEqual(res, seq) 68 self.assertEqual(res, seq) 93 self.assertEqual(res, TRIPLETS) 100 self.assertEqual(res, TRIPLETS) 106 self.assertEqual(res, TRIPLETS) 175 self.assertEqual(res, range(10)) 191 self.assertEqual(res, range(10)) 259 self.assertEqual(list(SequenceClass(5)), range(5)) 260 self.assertEqual(list(SequenceClass(0)), []) 261 self.assertEqual(list(()), [] [all...] |
test_long.py | 125 eq = self.assertEqual 196 self.assertEqual(x, y, 200 eq = self.assertEqual 230 eq = self.assertEqual 245 eq = self.assertEqual 292 self.assertEqual(got, expected, msg) 293 self.assertEqual(long(got, 0), x, Frm('long("%s", 0) != %r', got, x)) 300 self.assertEqual(got, expected, msg) 311 self.assertEqual(long(314), 314L) 312 self.assertEqual(long(3.14), 3L [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_iter.py | 61 self.assertEqual(res, seq)
68 self.assertEqual(res, seq)
93 self.assertEqual(res, TRIPLETS)
100 self.assertEqual(res, TRIPLETS)
106 self.assertEqual(res, TRIPLETS)
175 self.assertEqual(res, range(10))
191 self.assertEqual(res, range(10))
259 self.assertEqual(list(SequenceClass(5)), range(5))
260 self.assertEqual(list(SequenceClass(0)), [])
261 self.assertEqual(list(()), []) [all...] |
test_long.py | 123 eq = self.assertEqual
194 self.assertEqual(x, y,
198 eq = self.assertEqual
228 eq = self.assertEqual
243 eq = self.assertEqual
290 self.assertEqual(got, expected, msg)
291 self.assertEqual(long(got, 0), x, Frm('long("%s", 0) != %r', got, x))
298 self.assertEqual(got, expected, msg)
309 self.assertEqual(long(314), 314L)
310 self.assertEqual(long(3.14), 3L) [all...] |
test_contextlib.py | 24 self.assertEqual(state, [1])
25 self.assertEqual(x, 42)
27 self.assertEqual(state, [1, 42, 999])
40 self.assertEqual(state, [1])
41 self.assertEqual(x, 42)
44 self.assertEqual(state, [1, 42, 999])
77 self.assertEqual(state, [1, 42, 999])
79 self.assertEqual(state, [1])
80 self.assertEqual(x, 42)
83 self.assertEqual(state, [1, 42, 999]) [all...] |
/external/python/cpython2/Lib/test/ |
test_compile.py | 72 self.assertEqual(g['a'], 3) 79 self.assertEqual(l['a'], 10) 133 self.assertEqual(m.results, ('z', 12)) 141 self.assertEqual(m.results, ('z', list('xyz'))) 143 self.assertEqual(m.results, ('z', g)) 145 self.assertEqual(m.results, ('z', m)) 172 self.assertEqual(d['z'], 12) 195 self.assertEqual(f(5), 0) 204 self.assertEqual(comp_args((1, 2)), (1, 2)) 208 self.assertEqual(comp_args((1, 2)), (1, 2) [all...] |
test_StringIO.py | 27 eq = self.assertEqual 44 self.assertEqual(f.getvalue(), 'abcuvwxyz!') 50 self.assertEqual(f.getvalue(), 'abc') 60 eq = self.assertEqual 76 self.assertEqual(f.closed, False) 78 self.assertEqual(f.closed, True) 80 self.assertEqual(f.closed, False) 82 self.assertEqual(f.closed, True) 87 self.assertEqual(f.isatty(), False) 92 eq = self.assertEqual [all...] |
/external/toolchain-utils/crosperf/ |
experiment_runner_unittest.py | 129 self.assertEqual(er.STATUS_TIME_DELAY, 10) 137 self.assertEqual(er.STATUS_TIME_DELAY, 30) 175 self.assertEqual(self.run_count, 1) 177 self.assertEqual(self.mock_logger.LogStartDotsCount, 1) 178 self.assertEqual(self.mock_logger.LogAppendDotCount, 1) 179 self.assertEqual(self.mock_logger.LogEndDotsCount, 1) 180 self.assertEqual(self.mock_logger.dot_count, 2) 181 self.assertEqual(mock_progress_string.call_count, 0) 182 self.assertEqual(mock_status_string.call_count, 2) 183 self.assertEqual(self.mock_logger.output_msgs [all...] |
settings_unittest.py | 28 self.assertEqual(self.settings.name, 'global_name') 29 self.assertEqual(self.settings.settings_type, 'global') 37 self.assertEqual(type(self.settings.parent), dict) 38 self.assertEqual(self.settings.parent, settings_parent) 41 self.assertEqual(self.settings.fields, {}) 49 self.assertEqual(len(self.settings.fields), 1) 61 self.assertEqual(res.Get(), 1) 64 self.assertEqual(self.settings.fields, {}) 73 self.assertEqual(res.Get(), 1) 77 self.assertEqual(res.Get(), 10 [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/ |
test_tool.py | 45 self.assertEqual(out.splitlines(), self.expect.encode().splitlines())
46 self.assertEqual(err, None)
58 self.assertEqual(out.splitlines(), self.expect.encode().splitlines())
59 self.assertEqual(err, b'')
67 self.assertEqual(fp.read(), self.expect)
68 self.assertEqual(out, b'')
69 self.assertEqual(err, b'')
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/ |
test_build.py | 21 self.assertEqual(cmd.plat_name, get_platform())
25 self.assertEqual(cmd.build_purelib, wanted)
35 self.assertEqual(cmd.build_platlib, wanted)
38 self.assertEqual(cmd.build_lib, cmd.build_purelib)
42 self.assertEqual(cmd.build_temp, wanted)
46 self.assertEqual(cmd.build_scripts, wanted)
49 self.assertEqual(cmd.executable, os.path.normpath(sys.executable))
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/ |
test_refactor.py | 61 self.assertEqual(prefixed, ["fix_" + name for name in contents])
62 self.assertEqual(non_prefixed, contents)
63 self.assertEqual(full_names,
70 self.assertEqual(run(""), empty)
71 self.assertEqual(run("from __future__ import print_function"),
73 self.assertEqual(run("from __future__ import generators"),
75 self.assertEqual(run("from __future__ import generators, feature"),
78 self.assertEqual(run(inp), fs(("generators", "print_function")))
80 self.assertEqual(run(inp), fs(("print_function", "generators")))
82 self.assertEqual(run(inp), fs(("print_function",))) [all...] |
/external/python/cpython2/Lib/distutils/tests/ |
test_build.py | 21 self.assertEqual(cmd.plat_name, get_platform()) 25 self.assertEqual(cmd.build_purelib, wanted) 35 self.assertEqual(cmd.build_platlib, wanted) 38 self.assertEqual(cmd.build_lib, cmd.build_purelib) 42 self.assertEqual(cmd.build_temp, wanted) 46 self.assertEqual(cmd.build_scripts, wanted) 49 self.assertEqual(cmd.executable, os.path.normpath(sys.executable))
|
/external/python/cpython2/Lib/json/tests/ |
test_tool.py | 45 self.assertEqual(out.splitlines(), self.expect.encode().splitlines()) 46 self.assertEqual(err, None) 58 self.assertEqual(out.splitlines(), self.expect.encode().splitlines()) 59 self.assertEqual(err, b'') 67 self.assertEqual(fp.read(), self.expect) 68 self.assertEqual(out, b'') 69 self.assertEqual(err, b'')
|
/prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/test/ |
test_numbers.py | 58 self.assertEqual(t().value, 0) 64 self.assertEqual(t(l).value, l) 65 self.assertEqual(t(h).value, h) 70 self.assertEqual(t(l).value, l) 71 self.assertEqual(t(h).value, h) 76 self.assertEqual(t(v).value, truth(v)) 96 self.assertEqual(ArgType, type(t.from_param(0))) 102 self.assertEqual(ArgType, type(parm)) 113 self.assertEqual(t(2.0).value, 2.0) 114 self.assertEqual(t(2).value, 2.0 [all...] |