/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_property.py | 84 self.assertEqual(base.spam, 5) 85 self.assertEqual(base._spam, 5) 87 self.assertEqual(base.spam, 10) 88 self.assertEqual(base._spam, 10) 93 self.assertEqual(base.spam, 20) 94 self.assertEqual(base._spam, 20) 107 self.assertEqual(sub.__class__.spam.__doc__, "SubClass.getter") 113 self.assertEqual(base.__class__.spam.__doc__, "BaseClass.getter") 118 self.assertEqual(base.__class__.spam.__doc__, "spam spam spam") 119 self.assertEqual(sub.__class__.spam.__doc__, "spam spam spam" [all...] |
test_complex.py | 132 self.assertEqual(complex.__eq__(1+1j, 1L<<10000), False) 133 self.assertEqual(complex.__lt__(1+1j, None), NotImplemented) 183 self.assertEqual(a ** 0j, 1) 184 self.assertEqual(a ** 0.+0.j, 1) 186 self.assertEqual(3j ** 0j, 1) 187 self.assertEqual(3j ** 0, 1) 204 self.assertEqual(a ** 105, a ** 105) 205 self.assertEqual(a ** -105, a ** -105) 206 self.assertEqual(a ** -30, a ** -30) 208 self.assertEqual(0.0j ** 0, 1 [all...] |
test_urlparse.py | 33 self.assertEqual(result, parsed) 36 self.assertEqual(t, parsed) 39 self.assertEqual(result2, url) 40 self.assertEqual(result2, result.geturl()) 45 self.assertEqual(result3.geturl(), result.geturl()) 46 self.assertEqual(result3, result) 47 self.assertEqual(result3.scheme, result.scheme) 48 self.assertEqual(result3.netloc, result.netloc) 49 self.assertEqual(result3.path, result.path) 50 self.assertEqual(result3.params, result.params [all...] |
test_cfgparser.py | 90 eq = self.assertEqual 129 eq = self.assertEqual 160 self.assertEqual( 164 self.assertEqual( 187 self.assertEqual(cf.sections(), [], 274 self.assertEqual(output.getvalue(), expect_string) 300 self.assertEqual(parsed_files, [file1]) 301 self.assertEqual(cf.get("Foo Bar", "foo"), "newbar") 305 self.assertEqual(parsed_files, [file1]) 306 self.assertEqual(cf.get("Foo Bar", "foo"), "newbar" [all...] |
test_fractions.py | 98 self.assertEqual(0, gcd(0, 0)) 99 self.assertEqual(1, gcd(1, 0)) 100 self.assertEqual(-1, gcd(-1, 0)) 101 self.assertEqual(1, gcd(0, 1)) 102 self.assertEqual(-1, gcd(0, -1)) 103 self.assertEqual(1, gcd(7, 1)) 104 self.assertEqual(-1, gcd(7, -1)) 105 self.assertEqual(1, gcd(-23, 15)) 106 self.assertEqual(12, gcd(120, 84)) 107 self.assertEqual(-12, gcd(84, -120) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_pointers.py | 30 self.assertEqual(c_int.from_address(address).value, 12345678) 34 self.assertEqual(res.contents.value, 12345678) 35 self.assertEqual(res[0], 12345678) 46 self.assertEqual(res[0], 87654) 47 self.assertEqual(res.contents.value, 87654) 51 self.assertEqual(i.value, 54345) 57 self.assertEqual(i.value, 54345) 120 self.assertEqual(pt.contents.a, 1) 121 self.assertEqual(pt.contents.b, 2) 122 self.assertEqual(pt.contents.c, 3 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_property.py | 84 self.assertEqual(base.spam, 5) 85 self.assertEqual(base._spam, 5) 87 self.assertEqual(base.spam, 10) 88 self.assertEqual(base._spam, 10) 93 self.assertEqual(base.spam, 20) 94 self.assertEqual(base._spam, 20) 107 self.assertEqual(sub.__class__.spam.__doc__, "SubClass.getter") 113 self.assertEqual(base.__class__.spam.__doc__, "BaseClass.getter") 118 self.assertEqual(base.__class__.spam.__doc__, "spam spam spam") 119 self.assertEqual(sub.__class__.spam.__doc__, "spam spam spam" [all...] |
test_complex.py | 132 self.assertEqual(complex.__eq__(1+1j, 1L<<10000), False) 133 self.assertEqual(complex.__lt__(1+1j, None), NotImplemented) 183 self.assertEqual(a ** 0j, 1) 184 self.assertEqual(a ** 0.+0.j, 1) 186 self.assertEqual(3j ** 0j, 1) 187 self.assertEqual(3j ** 0, 1) 204 self.assertEqual(a ** 105, a ** 105) 205 self.assertEqual(a ** -105, a ** -105) 206 self.assertEqual(a ** -30, a ** -30) 208 self.assertEqual(0.0j ** 0, 1 [all...] |
test_urlparse.py | 33 self.assertEqual(result, parsed) 36 self.assertEqual(t, parsed) 39 self.assertEqual(result2, url) 40 self.assertEqual(result2, result.geturl()) 45 self.assertEqual(result3.geturl(), result.geturl()) 46 self.assertEqual(result3, result) 47 self.assertEqual(result3.scheme, result.scheme) 48 self.assertEqual(result3.netloc, result.netloc) 49 self.assertEqual(result3.path, result.path) 50 self.assertEqual(result3.params, result.params [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_descr.py | 63 self.assertEqual(eval(expr, d), res)
72 self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth])
73 self.assertEqual(m(a), res)
75 self.assertEqual(bm(), res)
86 self.assertEqual(eval(expr, d), res)
93 self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth])
94 self.assertEqual(m(a, b), res)
96 self.assertEqual(bm(b), res)
100 self.assertEqual(eval(expr, d), res)
107 self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth]) [all...] |
test_complex.py | 132 self.assertEqual(complex.__eq__(1+1j, 1L<<10000), False)
133 self.assertEqual(complex.__lt__(1+1j, None), NotImplemented)
183 self.assertEqual(a ** 0j, 1)
184 self.assertEqual(a ** 0.+0.j, 1)
186 self.assertEqual(3j ** 0j, 1)
187 self.assertEqual(3j ** 0, 1)
204 self.assertEqual(a ** 105, a ** 105)
205 self.assertEqual(a ** -105, a ** -105)
206 self.assertEqual(a ** -30, a ** -30)
208 self.assertEqual(0.0j ** 0, 1) [all...] |
/external/protobuf/python/google/protobuf/internal/ |
reflection_test.py | 114 self.assertEqual(len(values), len(others)) 116 self.assertEqual(values[i], others[i]) 126 self.assertEqual(24, proto.optional_int32) 127 self.assertEqual(54.321, proto.optional_double) 128 self.assertEqual('optional_string', proto.optional_string) 140 self.assertEqual([1, 2, 3, 4], list(proto.repeated_int32)) 141 self.assertEqual([1.23, 54.321], list(proto.repeated_double)) 142 self.assertEqual([True, False, False], list(proto.repeated_bool)) 143 self.assertEqual(["optional_string"], list(proto.repeated_string)) 144 self.assertEqual([], list(proto.repeated_float) [all...] |
/external/python/cpython2/Lib/test/ |
test_complex.py | 137 self.assertEqual(complex.__eq__(1+1j, 1L<<10000), False) 138 self.assertEqual(complex.__lt__(1+1j, None), NotImplemented) 188 self.assertEqual(a ** 0j, 1) 189 self.assertEqual(a ** 0.+0.j, 1) 191 self.assertEqual(3j ** 0j, 1) 192 self.assertEqual(3j ** 0, 1) 209 self.assertEqual(a ** 105, a ** 105) 210 self.assertEqual(a ** -105, a ** -105) 211 self.assertEqual(a ** -30, a ** -30) 213 self.assertEqual(0.0j ** 0, 1 [all...] |
test_cfgparser.py | 90 eq = self.assertEqual 129 eq = self.assertEqual 160 self.assertEqual( 164 self.assertEqual( 187 self.assertEqual(cf.sections(), [], 274 self.assertEqual(output.getvalue(), expect_string) 304 self.assertEqual(parsed_files, [file1]) 305 self.assertEqual(cf.get("Foo Bar", "foo"), "newbar") 309 self.assertEqual(parsed_files, [file1]) 310 self.assertEqual(cf.get("Foo Bar", "foo"), "newbar" [all...] |
test_fractions.py | 98 self.assertEqual(0, gcd(0, 0)) 99 self.assertEqual(1, gcd(1, 0)) 100 self.assertEqual(-1, gcd(-1, 0)) 101 self.assertEqual(1, gcd(0, 1)) 102 self.assertEqual(-1, gcd(0, -1)) 103 self.assertEqual(1, gcd(7, 1)) 104 self.assertEqual(-1, gcd(7, -1)) 105 self.assertEqual(1, gcd(-23, 15)) 106 self.assertEqual(12, gcd(120, 84)) 107 self.assertEqual(-12, gcd(84, -120) [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_complex.py | 132 self.assertEqual(complex.__eq__(1+1j, 1L<<10000), False) 133 self.assertEqual(complex.__lt__(1+1j, None), NotImplemented) 183 self.assertEqual(a ** 0j, 1) 184 self.assertEqual(a ** 0.+0.j, 1) 186 self.assertEqual(3j ** 0j, 1) 187 self.assertEqual(3j ** 0, 1) 204 self.assertEqual(a ** 105, a ** 105) 205 self.assertEqual(a ** -105, a ** -105) 206 self.assertEqual(a ** -30, a ** -30) 208 self.assertEqual(0.0j ** 0, 1 [all...] |
test_urlparse.py | 33 self.assertEqual(result, parsed) 36 self.assertEqual(t, parsed) 39 self.assertEqual(result2, url) 40 self.assertEqual(result2, result.geturl()) 45 self.assertEqual(result3.geturl(), result.geturl()) 46 self.assertEqual(result3, result) 47 self.assertEqual(result3.scheme, result.scheme) 48 self.assertEqual(result3.netloc, result.netloc) 49 self.assertEqual(result3.path, result.path) 50 self.assertEqual(result3.params, result.params [all...] |
test_cfgparser.py | 90 eq = self.assertEqual 129 eq = self.assertEqual 160 self.assertEqual( 164 self.assertEqual( 187 self.assertEqual(cf.sections(), [], 274 self.assertEqual(output.getvalue(), expect_string) 300 self.assertEqual(parsed_files, [file1]) 301 self.assertEqual(cf.get("Foo Bar", "foo"), "newbar") 305 self.assertEqual(parsed_files, [file1]) 306 self.assertEqual(cf.get("Foo Bar", "foo"), "newbar" [all...] |
test_fractions.py | 98 self.assertEqual(0, gcd(0, 0)) 99 self.assertEqual(1, gcd(1, 0)) 100 self.assertEqual(-1, gcd(-1, 0)) 101 self.assertEqual(1, gcd(0, 1)) 102 self.assertEqual(-1, gcd(0, -1)) 103 self.assertEqual(1, gcd(7, 1)) 104 self.assertEqual(-1, gcd(7, -1)) 105 self.assertEqual(1, gcd(-23, 15)) 106 self.assertEqual(12, gcd(120, 84)) 107 self.assertEqual(-12, gcd(84, -120) [all...] |
test_pyexpat.py | 26 self.assertEqual(self.parser.returns_unicode, y) 31 self.assertEqual(self.parser.ordered_attributes, y) 36 self.assertEqual(self.parser.specified_attributes, y) 144 self.assertEqual(op[0], 'PI: \'xml-stylesheet\' \'href="stylesheet.css"\'') 145 self.assertEqual(op[1], "Comment: ' comment data '") 146 self.assertEqual(op[2], "Notation declared: ('notation', None, 'notation.jpeg', None)") 147 self.assertEqual(op[3], "Unparsed entity decl: ('unparsed_entity', None, 'entity.file', None, 'notation')") 148 self.assertEqual(op[4], "Start element: 'root' {'attr1': 'value1', 'attr2': 'value2\\xe1\\xbd\\x80'}") 149 self.assertEqual(op[5], "NS decl: 'myns' 'http://www.python.org/namespace'") 150 self.assertEqual(op[6], "Start element: 'http://www.python.org/namespace!subelement' {}" [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_complex.py | 132 self.assertEqual(complex.__eq__(1+1j, 1L<<10000), False) 133 self.assertEqual(complex.__lt__(1+1j, None), NotImplemented) 183 self.assertEqual(a ** 0j, 1) 184 self.assertEqual(a ** 0.+0.j, 1) 186 self.assertEqual(3j ** 0j, 1) 187 self.assertEqual(3j ** 0, 1) 204 self.assertEqual(a ** 105, a ** 105) 205 self.assertEqual(a ** -105, a ** -105) 206 self.assertEqual(a ** -30, a ** -30) 208 self.assertEqual(0.0j ** 0, 1 [all...] |
test_urlparse.py | 33 self.assertEqual(result, parsed) 36 self.assertEqual(t, parsed) 39 self.assertEqual(result2, url) 40 self.assertEqual(result2, result.geturl()) 45 self.assertEqual(result3.geturl(), result.geturl()) 46 self.assertEqual(result3, result) 47 self.assertEqual(result3.scheme, result.scheme) 48 self.assertEqual(result3.netloc, result.netloc) 49 self.assertEqual(result3.path, result.path) 50 self.assertEqual(result3.params, result.params [all...] |
test_cfgparser.py | 90 eq = self.assertEqual 129 eq = self.assertEqual 160 self.assertEqual( 164 self.assertEqual( 187 self.assertEqual(cf.sections(), [], 274 self.assertEqual(output.getvalue(), expect_string) 300 self.assertEqual(parsed_files, [file1]) 301 self.assertEqual(cf.get("Foo Bar", "foo"), "newbar") 305 self.assertEqual(parsed_files, [file1]) 306 self.assertEqual(cf.get("Foo Bar", "foo"), "newbar" [all...] |
test_fractions.py | 98 self.assertEqual(0, gcd(0, 0)) 99 self.assertEqual(1, gcd(1, 0)) 100 self.assertEqual(-1, gcd(-1, 0)) 101 self.assertEqual(1, gcd(0, 1)) 102 self.assertEqual(-1, gcd(0, -1)) 103 self.assertEqual(1, gcd(7, 1)) 104 self.assertEqual(-1, gcd(7, -1)) 105 self.assertEqual(1, gcd(-23, 15)) 106 self.assertEqual(12, gcd(120, 84)) 107 self.assertEqual(-12, gcd(84, -120) [all...] |
test_pyexpat.py | 26 self.assertEqual(self.parser.returns_unicode, y) 31 self.assertEqual(self.parser.ordered_attributes, y) 36 self.assertEqual(self.parser.specified_attributes, y) 144 self.assertEqual(op[0], 'PI: \'xml-stylesheet\' \'href="stylesheet.css"\'') 145 self.assertEqual(op[1], "Comment: ' comment data '") 146 self.assertEqual(op[2], "Notation declared: ('notation', None, 'notation.jpeg', None)") 147 self.assertEqual(op[3], "Unparsed entity decl: ('unparsed_entity', None, 'entity.file', None, 'notation')") 148 self.assertEqual(op[4], "Start element: 'root' {'attr1': 'value1', 'attr2': 'value2\\xe1\\xbd\\x80'}") 149 self.assertEqual(op[5], "NS decl: 'myns' 'http://www.python.org/namespace'") 150 self.assertEqual(op[6], "Start element: 'http://www.python.org/namespace!subelement' {}" [all...] |