Home
last modified time | relevance | path

Searched refs:True (Results 1 – 25 of 755) sorted by relevance

12345678910>>...31

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_bool.py24 print >> fo, False, True
34 self.assertEqual(repr(True), 'True')
36 self.assertEqual(eval(repr(True)), True)
40 self.assertEqual(str(True), 'True')
45 self.assertEqual(int(True), 1)
46 self.assertIsNot(int(True), True)
51 self.assertEqual(float(True), 1.0)
52 self.assertIsNot(float(True), True)
57 self.assertEqual(long(True), 1L)
58 self.assertIsNot(long(True), True)
[all …]
Dtest_exception_variations.py14 hit_except = True
16 hit_else = True
18 hit_finally = True
32 hit_except = True
34 hit_else = True
36 hit_finally = True
49 hit_except = True
51 hit_finally = True
63 hit_except = True
65 hit_finally = True
[all …]
Dtest_typechecks.py35 self.assertEqual(Integer.__subclasscheck__(int), True)
39 self.assertEqual(issubclass(int, Integer), True)
40 self.assertEqual(issubclass(int, (Integer,)), True)
45 self.assertEqual(isinstance(42, Integer), True)
46 self.assertEqual(isinstance(42, (Integer,)), True)
51 self.assertEqual(isinstance(Integer(), Integer), True)
52 self.assertEqual(isinstance(Integer(), (Integer,)), True)
55 self.assertEqual(issubclass(Integer, Integer), True)
56 self.assertEqual(issubclass(Integer, (Integer,)), True)
59 self.assertEqual(issubclass(SubInt, Integer), True)
[all …]
Dtest_locale.py183 self._test_format("%d", 4200, grouping=True, out='4%s200' % self.sep)
184 self._test_format("%+d", 4200, grouping=True, out='+4%s200' % self.sep)
185 self._test_format("%+d", -4200, grouping=True, out='-4%s200' % self.sep)
188 self._test_format("%10d", 4200, grouping=True,
190 self._test_format("%-10d", -4200, grouping=True,
281 self._test_currency(50000, "$50,000.00", grouping=True)
283 grouping=True, international=True)
290 self._test_format("%.2f", 12345.67, grouping=True, out='12345.67')
293 self._test_format("%9.2f", 12345.67, grouping=True, out=' 12345.67')
303 self._test_format("%.2f", 345.67, grouping=True, out='345,67')
[all …]
Dtest_isinstance.py188 self.assertEqual(True, isinstance(Super(), Super))
193 self.assertEqual(True, isinstance(Child(), Super))
198 self.assertEqual(True, isinstance(AbstractSuper(), AbstractSuper))
203 self.assertEqual(True, isinstance(AbstractChild(), AbstractChild))
204 self.assertEqual(True, isinstance(AbstractChild(), AbstractSuper))
210 self.assertEqual(True, issubclass(Super, Super))
214 self.assertEqual(True, issubclass(Child, Child))
215 self.assertEqual(True, issubclass(Child, Super))
220 self.assertEqual(True, issubclass(AbstractSuper, AbstractSuper))
224 self.assertEqual(True, issubclass(AbstractChild, AbstractChild))
[all …]
Dstring_tests.py787 self.checkequal(True, 'a', 'islower')
790 self.checkequal(True, 'abc', 'islower')
792 self.checkequal(True, 'abc\n', 'islower')
798 self.checkequal(True, 'A', 'isupper')
800 self.checkequal(True, 'ABC', 'isupper')
802 self.checkequal(True, 'ABC\n', 'isupper')
808 self.checkequal(True, 'A', 'istitle')
810 self.checkequal(True, 'A Titlecased Line', 'istitle')
811 self.checkequal(True, 'A\nTitlecased Line', 'istitle')
812 self.checkequal(True, 'A Titlecased, Line', 'istitle')
[all …]
Dtest_richcmp.py126 self.checkequal("lt", a, b, [True, True, False, False, False])
127 self.checkequal("le", a, b, [True, True, True, False, False])
128 self.checkequal("eq", a, b, [False, False, True, False, False])
129 self.checkequal("ne", a, b, [True, True, False, True, True ])
130 self.checkequal("gt", a, b, [False, False, False, True, True ])
131 self.checkequal("ge", a, b, [False, False, True, True, True ])
171 self.checkvalue("le", 0, 0, True )
172 self.checkvalue("eq", 0, 0, True )
175 self.checkvalue("ge", 0, 0, True )
177 self.checkvalue("lt", 0, 1, True )
[all …]
Dtest_print.py23 (False, False, True):
25 (False, True, False):
27 (False, True, True):
29 (True, False, False):
31 (True, False, True):
33 (True, True, False):
35 (True, True, True):
122 buf = Recorder(True)
Dtest_base64.py147 eq(base64.b32decode('', True), '')
148 eq(base64.b32decode('ME======', True), 'a')
149 eq(base64.b32decode('MFRA====', True), 'ab')
150 eq(base64.b32decode('MFRGG===', True), 'abc')
151 eq(base64.b32decode('MFRGGZA=', True), 'abcd')
152 eq(base64.b32decode('MFRGGZDF', True), 'abcde')
154 eq(base64.b32decode('me======', True), 'a')
155 eq(base64.b32decode('mfra====', True), 'ab')
156 eq(base64.b32decode('mfrgg===', True), 'abc')
157 eq(base64.b32decode('mfrggza=', True), 'abcd')
[all …]
Dtest_cookielib.py260 c.save(filename, ignore_discard=True)
262 c.load(filename, ignore_discard=True)
353 ("http://foo.bar.com/", ".foo.bar.com", True),
354 ("http://foo.bar.com/", "foo.bar.com", True),
355 ("http://foo.bar.com/", ".bar.com", True),
356 ("http://foo.bar.com/", "com", True),
358 ("http://foo.com/", ".foo.com", True),
359 ("http://foo.com/", "foo.com", True),
360 ("http://foo.com/", "com", True),
362 ("http://foo/", ".foo", True),
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/
Dtest_scanstring.py9 scanstring('"z\\ud834\\udd20x"', 1, None, True),
14 scanstring(u'"z\U0001d120x"', 1, None, True),
18 scanstring(u'"z\U0001d120x"', 1, None, True),
22 scanstring('"\\u007b"', 1, None, True),
26 … scanstring('"A JSON payload should be an object or array, not a string."', 1, None, True),
30 scanstring('["Unclosed array"', 2, None, True),
34 scanstring('["extra comma",]', 2, None, True),
38 scanstring('["double extra comma",,]', 2, None, True),
42 scanstring('["Comma after the close"],', 2, None, True),
46 scanstring('["Extra close"]]', 2, None, True),
[all …]
Dtest_dump.py16 {True: False, False: True}, sort_keys=True),
19 {2: 3.0, 4.0: 5L, False: 1, 6L: True}, sort_keys=True),
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/
Dtest_scanstring.py10 scanstring(u'"z\U0001d120x"', 1, None, True),
14 scanstring(u'"z\U0001d120x"', 1, None, True),
18 scanstring('"\\u007b"', 1, None, True),
22 … scanstring('"A JSON payload should be an object or array, not a string."', 1, None, True),
26 scanstring('["Unclosed array"', 2, None, True),
30 scanstring('["extra comma",]', 2, None, True),
34 scanstring('["double extra comma",,]', 2, None, True),
38 scanstring('["Comma after the close"],', 2, None, True),
42 scanstring('["Extra close"]]', 2, None, True),
46 scanstring('{"Extra comma": true,}', 2, None, True),
[all …]
Dtest_dump.py16 {True: False, False: True}, sort_keys=True),
19 {2: 3.0, 4.0: 5L, False: 1, 6L: True}, sort_keys=True),
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/
DParserValidate.py42 return True
57 return True
78 return True
87 return True
109 return True
119 return True
133 return True
143 return True
145 return True
148 return True
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Ddummy_thread.py52 _main = True
107 self.locked_status = True
108 return True
111 self.locked_status = True
112 return True
128 return True
136 _main = True
145 _interrupt = True
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Ddummy_thread.py52 _main = True
107 self.locked_status = True
108 return True
111 self.locked_status = True
112 return True
128 return True
136 _main = True
145 _interrupt = True
Dmimetypes.py64 def __init__(self, filenames=(), strict=True):
72 self.add_type(type, ext, True)
78 def add_type(self, type, ext, strict=True):
95 def guess_type(self, url, strict=True):
142 types_map = self.types_map[True]
157 def guess_all_extensions(self, type, strict=True):
169 extensions = self.types_map_inv[True].get(type, [])
176 def guess_extension(self, type, strict=True):
194 def read(self, filename, strict=True):
205 def readfp(self, fp, strict=True):
[all …]
Dwebbrowser.py58 def open(url, new=0, autoraise=True):
62 return True
108 return True
111 return True
118 return True
125 return True
132 return True
147 def open(self, url, new=0, autoraise=True):
171 def open(self, url, new=0, autoraise=True):
178 p = subprocess.Popen(cmdline, close_fds=True)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/
D__init__.py113 ensure_ascii=True,
114 check_circular=True,
115 allow_nan=True,
122 def dump(obj, fp, skipkeys=False, ensure_ascii=True, check_circular=True,
123 allow_nan=True, cls=None, indent=None, separators=None,
185 def dumps(obj, skipkeys=False, ensure_ascii=True, check_circular=True,
186 allow_nan=True, cls=None, indent=None, separators=None,
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Core/
DDependencyRules.py66 return True
79 Result = True
99 Result = True
102 Result = True
135 Found = True
158 return True
170 Found = True
203 return True, DpObj
241 return True
251 Removable = True
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/
D__init__.py113 ensure_ascii=True,
114 check_circular=True,
115 allow_nan=True,
122 def dump(obj, fp, skipkeys=False, ensure_ascii=True, check_circular=True,
123 allow_nan=True, cls=None, indent=None, separators=None,
193 def dumps(obj, skipkeys=False, ensure_ascii=True, check_circular=True,
194 allow_nan=True, cls=None, indent=None, separators=None,
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Object/Parser/
DInfHeaderObject.py48 return True
64 return True
80 return True
96 return True
112 return True
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/
Dparser.py67 while True:
87 def parse(self, fp, headersonly=True):
88 return Parser.parse(self, fp, True)
90 def parsestr(self, text, headersonly=True):
91 return Parser.parsestr(self, text, True)
/device/google/cuttlefish_common/tools/
Dupload_to_gce_and_run.py23 shell=True)
34 shell=True)
46 shell=True)
52 shell=True)
60 shell=True)
77 '-instance', type=str, required=True,

12345678910>>...31