Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 25 of 39) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_textwrap.py31 def check(self, result, expect): argument
32 self.assertEqual(result, expect,
34 self.show(expect), self.show(result)))
36 def check_wrap(self, text, width, expect, **kwargs): argument
38 self.check(result, expect)
40 def check_split(self, text, expect): argument
42 self.assertEqual(result, expect,
44 "but got %r" % (expect, result))
81 expect = ["This is a paragraph that already has line",
89 self.check(result, expect)
[all …]
Dtest_urllib.py421 expect = given.replace(' ', hexescape(' '))
423 self.assertEqual(expect, result,
424 "using quote(): %s != %s" % (expect, result))
425 expect = given.replace(' ', '+')
427 self.assertEqual(expect, result,
428 "using quote_plus(): %s != %s" % (expect, result))
448 expect = chr(num)
450 self.assertEqual(expect, result,
451 "using unquote(): %s != %s" % (expect, result))
453 self.assertEqual(expect, result,
[all …]
Dtest_cgi.py124 for orig, expect in parse_strict_test_cases:
127 self.assertEqual(d, expect, "Error parsing %s" % repr(orig))
129 self.assertEqual(d, expect, "Error parsing %s" % repr(orig))
135 if isinstance(expect, dict):
137 self.assertEqual(len(expect), len(fcd))
138 self.assertItemsEqual(expect.keys(), fcd.keys())
139 self.assertItemsEqual(expect.values(), fcd.values())
140 self.assertItemsEqual(expect.items(), fcd.items())
146 for key in expect.keys():
147 expect_val = expect[key]
[all …]
Dtest_eof.py9 expect = "EOL while scanning string literal (<string>, line 1)"
14 self.assertEqual(str(msg), expect)
19 expect = ("EOF while scanning triple-quoted string literal "
24 self.assertEqual(str(msg), expect)
Dtest_warnings.py546 expect = format % (file_name, line_num, category.__name__, message,
548 self.assertEqual(expect, self.module.formatwarning(message,
552 expect = format % (file_name, line_num, category.__name__, message,
554 self.assertEqual(expect, self.module.formatwarning(message,
564 expect = self.module.formatwarning(message, category, file_name,
568 self.assertEqual(file_object.getvalue(), expect)
571 expect = self.module.formatwarning(message, category, file_name,
576 self.assertEqual(expect, file_object.getvalue())
Dtest_optparse.py1505 expect = u"""\
1510 self.assertHelpEquals(expect)
1515 expect = u"""\
1521 self.assertHelpEquals(expect)
1535 expect = """\
1555 self.assertHelpEquals(expect)
1558 self.assertHelpEquals(expect + "\nPlease report bugs to /dev/null.\n")
Dtest_cookielib.py170 for arg, expect in tests:
178 self.assertEqual(result, expect, """
182 """ % (arg, expect, result))
209 for arg, expect in tests:
212 self.assertEqual(res, expect, """
217 """ % (arg, expect, res, input))
Dieee754.txt11 what you expect. We treat two floats as equal if the difference between them
Dtest_urlparse.py83 for orig, expect in parse_qsl_test_cases:
85 self.assertEqual(result, expect, "Error parsing %s" % repr(orig))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/
Dtest_tool.py18 expect = textwrap.dedent("""\ variable in TestTool
45 self.assertEqual(out.splitlines(), self.expect.encode().splitlines())
58 self.assertEqual(out.splitlines(), self.expect.encode().splitlines())
67 self.assertEqual(fp.read(), self.expect)
Dtest_encode_basestring_ascii.py27 for input_string, expect in CASES:
29 self.assertEqual(result, expect,
31 result, expect, fname, input_string))
Dtest_separators.py10 expect = textwrap.dedent("""\
40 self.assertEqual(d2, expect)
Dtest_indent.py11 expect = textwrap.dedent("""\
41 self.assertEqual(d2, expect)
Dtest_scanstring.py95 def assertScan(given, expect): argument
97 (expect, len(given)))
101 (expect, len(given)))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/
Dtest_encode_basestring_ascii.py27 for input_string, expect in CASES:
29 self.assertEqual(result, expect,
31 result, expect, fname, input_string))
Dtest_separators.py10 expect = textwrap.dedent("""\
40 self.assertEqual(d2, expect)
Dtest_indent.py11 expect = textwrap.dedent("""\
41 self.assertEqual(d2, expect)
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/
DRIGHTS18 As long as these guidelines are kept, we expect to continue enhancing
19 this system and expect to make other tools available as they are
DKNOWN_PROBLEMS.txt26 the user, but it isn't. expect. Some examples I've run seem to
158 expect, it will contain a reference to the Y that was
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/
Dpgen.py153 name = self.expect(token.NAME)
154 self.expect(token.OP, ":")
156 self.expect(token.NEWLINE)
281 self.expect(token.OP, "]")
301 self.expect(token.OP, ")")
313 def expect(self, type, value=None): member in ParserGenerator
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcompileall.py88 expect = struct.pack('<4sl', imp.get_magic(), mtime)
92 if expect == actual:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dcompileall.py88 expect = struct.pack('<4sl', imp.get_magic(), mtime)
92 if expect == actual:
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/
Dmakefile120 # As long as these guidelines are kept, we expect to continue enhancing
21 # this system and expect to make other tools available as they are
/device/linaro/bootloader/edk2/OvmfPkg/SmmControl2Dxe/
DSmmControl2Dxe.inf5 # We expect the PEI phase to have covered the following:
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/dlg/
Ddlg1.txt87 guidelines are followed, we expect to continue enhancing
88 this system and expect to make other tools available as they

12