/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/ |
H A D | loader.py | 12 from . import case, suite
namespace 45 suiteClass = suite.TestSuite
49 """Return a suite of all tests cases contained in testCaseClass"""
50 if issubclass(testCaseClass, suite.TestSuite):
60 """Return a suite of all tests cases contained in the given module"""
78 """Return a suite of all tests cases given a string specifier.
110 elif isinstance(obj, suite.TestSuite):
114 if isinstance(test, suite.TestSuite):
125 """Return a suite of all tests cases found using the given sequence
309 suiteClass=suite [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/ |
H A D | test_setups.py | 18 suite = unittest.TestSuite()
21 suite.addTests(tests)
25 # creating a nested suite exposes some potential bugs
27 realSuite.addTest(suite)
29 suite.addTest(unittest.TestSuite())
250 suite = unittest.TestSuite((first, second, third, fourth, fifth, sixth))
253 result = runner.run(suite)
466 suite = unittest.defaultTestLoader.loadTestsFromTestCase(Test)
467 suite.debug()
499 suite [all...] |
H A D | test_result.py | 509 suite = unittest.TestSuite([Foo('test_foo')])
510 suite(result)
523 suite = unittest.TestSuite([Foo('test_foo')])
524 suite(result)
542 suite = unittest.TestSuite([Foo('test_foo')])
543 suite(result)
561 suite = unittest.TestSuite([Foo('test_foo')])
562 suite(result)
|
H A D | test_program.py | 22 suite = loader.discover('unittest.test')
24 self.assertEqual(suite._tests, tests)
62 """Test loader that returns a suite containing FooBar."""
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/ |
H A D | graminit.h | 47 #define suite 300
macro
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/ |
H A D | graminit.h | 47 #define suite 300
macro
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
H A D | symbol.py | 57 suite = 300
variable
|
H A D | doctest.py | 2280 Convert doctest tests for a module to a unittest test suite.
2322 suite = unittest.TestSuite()
2323 suite.addTest(SkipDocTestCase())
2324 return suite
2331 suite = unittest.TestSuite()
2341 suite.addTest(DocTestCase(test, **options))
2343 return suite
2389 """A unittest suite for one or more doctest files.
2444 suite = unittest.TestSuite()
2453 suite [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
H A D | test_bsddb3.py | 68 run_unittest(test_all.suite(module_prefix='bsddb.test.',
|
H A D | test_support.py | 1055 def _run_suite(suite):
1062 result = runner.run(suite)
1078 suite = unittest.TestSuite()
1082 suite.addTest(unittest.findTestCases(sys.modules[cls]))
1086 suite.addTest(cls)
1088 suite.addTest(unittest.makeSuite(cls))
1089 _run_suite(suite)
|
H A D | test_math.py | 1024 suite = unittest.TestSuite()
1025 suite.addTest(unittest.makeSuite(MathTests))
1026 suite.addTest(DocFileSuite("ieee754.txt"))
1027 run_unittest(suite)
|
H A D | test_multiprocessing.py | 2088 suite = unittest.TestSuite(loadTestsFromTestCase(tc) for tc in testcases)
2097 run(suite)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/ |
H A D | fixer_util.py | 253 if node.type == syms.suite and len(node.children) > 2:
261 ### The following functions are to find bindings in a suite
265 if node.type == syms.suite:
269 suite = Node(syms.suite, [node])
270 suite.parent = parent
271 return suite
362 # i+3 is the colon, i+4 is the suite
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/ |
H A D | test_dist.py | 430 suite = unittest.TestSuite()
431 suite.addTest(unittest.makeSuite(DistributionTestCase))
432 suite.addTest(unittest.makeSuite(MetadataTestCase))
433 return suite
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/parser/ |
H A D | example.py | 25 ast = parser.suite(source)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/hotshot/ |
H A D | log.py | 174 st = parser.suite(fp.read())
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/pydoc_data/ |
H A D | topics.py | 20 'class': u'\nClass definitions\n*****************\n\nA class definition defines a class object (see section *The standard\ntype hierarchy*):\n\n classdef ::= "class" classname [inheritance] ":" suite\n inheritance ::= "(" [expression_list] ")"\n classname ::= identifier\n\nA class definition is an executable statement. It first evaluates the\ninheritance list, if present. Each item in the inheritance list\nshould evaluate to a class object or class type which allows\nsubclassing. The class\'s suite is then executed in a new execution\nframe (see section *Naming and binding*), using a newly created local\nnamespace and the original global namespace. (Usually, the suite\ncontains only function definitions.) When the class\'s suite finishes\nexecution, its execution frame is discarded but its local namespace is\nsaved. [4] A class object is then created using the inheritance list\nfor the base classes and the saved local namespace for the attribute\ndictionary. The class name is bound to this class object in the\noriginal local namespace.\n\n**Programmer\'s note:** Variables defined in the class definition are\nclass variables; they are shared by all instances. To create instance\nvariables, they can be set in a method with ``self.name = value``.\nBoth class and instance variables are accessible through the notation\n"``self.name``", and an instance variable hides a class variable with\nthe same name when accessed in this way. Class variables can be used\nas defaults for instance variables, but using mutable values there can\nlead to unexpected results. For *new-style class*es, descriptors can\nbe used to create instance variables with different implementation\ndetails.\n\nClass definitions, like function definitions, may be wrapped by one or\nmore *decorator* expressions. The evaluation rules for the decorator\nexpressions are the same as for functions. The result must be a class\nobject, which is then bound to the class name.\n\n-[ Footnotes ]-\n\n[1] The exception is propagated to the invocation stack only if there\n is no ``finally`` clause that negates the exception.\n\n[2] Currently, control "flows off the end" except in the case of an\n exception or the execution of a ``return``, ``continue``, or\n ``break`` statement.\n\n[3] A string literal appearing as the first statement in the function\n body is transformed into the function\'s ``__doc__`` attribute and\n therefore the function\'s *docstring*.\n\n[4] A string literal appearing as the first statement in the class\n body is transformed into the namespace\'s ``__doc__`` item and\n therefore the class\'s *docstring*.\n',
23 'compound': u'\nCompound statements\n*******************\n\nCompound statements contain (groups of) other statements; they affect\nor control the execution of those other statements in some way. In\ngeneral, compound statements span multiple lines, although in simple\nincarnations a whole compound statement may be contained in one line.\n\nThe ``if``, ``while`` and ``for`` statements implement traditional\ncontrol flow constructs. ``try`` specifies exception handlers and/or\ncleanup code for a group of statements. Function and class\ndefinitions are also syntactically compound statements.\n\nCompound statements consist of one or more \'clauses.\' A clause\nconsists of a header and a \'suite.\' The clause headers of a\nparticular compound statement are all at the same indentation level.\nEach clause header begins with a uniquely identifying keyword and ends\nwith a colon. A suite is a group of statements controlled by a\nclause. A suite can be one or more semicolon-separated simple\nstatements on the same line as the header, following the header\'s\ncolon, or it can be one or more indented statements on subsequent\nlines. Only the latter form of suite can contain nested compound\nstatements; the following is illegal, mostly because it wouldn\'t be\nclear to which ``if`` clause a following ``else`` clause would belong:\n\n if test1: if test2: print x\n\nAlso note that the semicolon binds tighter than the colon in this\ncontext, so that in the following example, either all or none of the\n``print`` statements are executed:\n\n if x < y < z: print x; print y; print z\n\nSummarizing:\n\n compound_stmt ::= if_stmt\n | while_stmt\n | for_stmt\n | try_stmt\n | with_stmt\n | funcdef\n | classdef\n | decorated\n suite ::= stmt_list NEWLINE | NEWLINE INDENT statement+ DEDENT\n statement ::= stmt_list NEWLINE | compound_stmt\n stmt_list ::= simple_stmt (";" simple_stmt)* [";"]\n\nNote that statements always end in a ``NEWLINE`` possibly followed by\na ``DEDENT``. Also note that optional continuation clauses always\nbegin with a keyword that cannot start a statement, thus there are no\nambiguities (the \'dangling ``else``\' problem is solved in Python by\nrequiring nested ``if`` statements to be indented).\n\nThe formatting of the grammar rules in the following sections places\neach clause on a separate line for clarity.\n\n\nThe ``if`` statement\n====================\n\nThe ``if`` statement is used for conditional execution:\n\n if_stmt ::= "if" expression ":" suite\ [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/ |
H A D | transformer.py | 127 """Return a modified parse tree for the given suite text."""
128 return self.transform(parser.suite(text))
249 # funcdef: [decorators] 'def' NAME parameters ':' suite
295 # classdef: 'class' NAME ['(' [testlist] ')'] ':' suite
507 # if: test ':' suite ('elif' test ':' suite)* ['else' ':' suite]
522 # 'while' test ':' suite ['else' ':' suite]
535 # 'for' exprlist 'in' exprlist ':' suite ['els 558 def suite(self, nodelist): member in class:Transformer [all...] |
H A D | pycodegen.py | 417 test, suite = node.tests[i]
426 self.visit(suite)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
H A D | parsermodule.c | 190 PyDoc_STR("Determines if this ST object was created from a suite.")},
487 * a statement suite, respectively. The return is a Python truth value.
595 * suite ('exec' form). The real work is done by parser_do_parse() above.
610 return (parser_do_parse(args, kw, "s:suite", PyST_SUITE));
944 VALIDATER(parameters); VALIDATER(suite);
variable 1056 * 'class' NAME ['(' testlist ')'] ':' suite
1091 * 'if' test ':' suite ('elif' test ':' suite)* ['else' ':' suite]
1105 /* ... 'else' ':' suite */
[all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
H A D | parsermodule.c | 448 * a statement suite, respectively. The return is a Python truth value.
506 PyDoc_STR("Determines if this ST object was created from a suite.")},
575 * suite ('exec' form). The real work is done by parser_do_parse() above.
590 return (parser_do_parse(args, kw, "s:suite", PyST_SUITE));
915 VALIDATER(parameters); VALIDATER(suite);
variable 1027 * 'class' NAME ['(' testlist ')'] ':' suite
1062 * 'if' test ':' suite ('elif' test ':' suite)* ['else' ':' suite]
1076 /* ... 'else' ':' suite */
[all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/pydoc_data/ |
H A D | topics.py | 20 'class': u'\nClass definitions\n*****************\n\nA class definition defines a class object (see section The standard\ntype hierarchy):\n\n classdef ::= "class" classname [inheritance] ":" suite\n inheritance ::= "(" [expression_list] ")"\n classname ::= identifier\n\nA class definition is an executable statement. It first evaluates the\ninheritance list, if present. Each item in the inheritance list\nshould evaluate to a class object or class type which allows\nsubclassing. The class\'s suite is then executed in a new execution\nframe (see section Naming and binding), using a newly created local\nnamespace and the original global namespace. (Usually, the suite\ncontains only function definitions.) When the class\'s suite finishes\nexecution, its execution frame is discarded but its local namespace is\nsaved. [4] A class object is then created using the inheritance list\nfor the base classes and the saved local namespace for the attribute\ndictionary. The class name is bound to this class object in the\noriginal local namespace.\n\n**Programmer\'s note:** Variables defined in the class definition are\nclass variables; they are shared by all instances. To create instance\nvariables, they can be set in a method with "self.name = value". Both\nclass and instance variables are accessible through the notation\n""self.name"", and an instance variable hides a class variable with\nthe same name when accessed in this way. Class variables can be used\nas defaults for instance variables, but using mutable values there can\nlead to unexpected results. For *new-style class*es, descriptors can\nbe used to create instance variables with different implementation\ndetails.\n\nClass definitions, like function definitions, may be wrapped by one or\nmore *decorator* expressions. The evaluation rules for the decorator\nexpressions are the same as for functions. The result must be a class\nobject, which is then bound to the class name.\n\n-[ Footnotes ]-\n\n[1] The exception is propagated to the invocation stack unless\n there is a "finally" clause which happens to raise another\n exception. That new exception causes the old one to be lost.\n\n[2] Currently, control "flows off the end" except in the case of\n an exception or the execution of a "return", "continue", or\n "break" statement.\n\n[3] A string literal appearing as the first statement in the\n function body is transformed into the function\'s "__doc__"\n attribute and therefore the function\'s *docstring*.\n\n[4] A string literal appearing as the first statement in the class\n body is transformed into the namespace\'s "__doc__" item and\n therefore the class\'s *docstring*.\n',
22 'compound': u'\nCompound statements\n*******************\n\nCompound statements contain (groups of) other statements; they affect\nor control the execution of those other statements in some way. In\ngeneral, compound statements span multiple lines, although in simple\nincarnations a whole compound statement may be contained in one line.\n\nThe "if", "while" and "for" statements implement traditional control\nflow constructs. "try" specifies exception handlers and/or cleanup\ncode for a group of statements. Function and class definitions are\nalso syntactically compound statements.\n\nCompound statements consist of one or more \'clauses.\' A clause\nconsists of a header and a \'suite.\' The clause headers of a\nparticular compound statement are all at the same indentation level.\nEach clause header begins with a uniquely identifying keyword and ends\nwith a colon. A suite is a group of statements controlled by a\nclause. A suite can be one or more semicolon-separated simple\nstatements on the same line as the header, following the header\'s\ncolon, or it can be one or more indented statements on subsequent\nlines. Only the latter form of suite can contain nested compound\nstatements; the following is illegal, mostly because it wouldn\'t be\nclear to which "if" clause a following "else" clause would belong:\n\n if test1: if test2: print x\n\nAlso note that the semicolon binds tighter than the colon in this\ncontext, so that in the following example, either all or none of the\n"print" statements are executed:\n\n if x < y < z: print x; print y; print z\n\nSummarizing:\n\n compound_stmt ::= if_stmt\n | while_stmt\n | for_stmt\n | try_stmt\n | with_stmt\n | funcdef\n | classdef\n | decorated\n suite ::= stmt_list NEWLINE | NEWLINE INDENT statement+ DEDENT\n statement ::= stmt_list NEWLINE | compound_stmt\n stmt_list ::= simple_stmt (";" simple_stmt)* [";"]\n\nNote that statements always end in a "NEWLINE" possibly followed by a\n"DEDENT". Also note that optional continuation clauses always begin\nwith a keyword that cannot start a statement, thus there are no\nambiguities (the \'dangling "else"\' problem is solved in Python by\nrequiring nested "if" statements to be indented).\n\nThe formatting of the grammar rules in the following sections places\neach clause on a separate line for clarity.\n\n\nThe "if" statement\n==================\n\nThe "if" statement is used for conditional execution:\n\n if_stmt ::= "if" expression ":" suite\ [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/test/ |
H A D | test_email.py | 3515 def suite():
function 3516 suite = unittest.TestSuite()
3518 suite.addTest(unittest.makeSuite(testclass))
3519 return suite
3529 unittest.main(defaultTest='suite')
|
H A D | test_email_renamed.py | 3283 def suite():
function 3284 suite = unittest.TestSuite()
3286 suite.addTest(unittest.makeSuite(testclass))
3287 return suite
3297 unittest.main(defaultTest='suite')
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
H A D | ast.c | 191 case suite:
895 /* funcdef: 'def' NAME parameters ':' suite */
2742 /* suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT */
2748 REQ(n, suite);
2808 /* if_stmt: 'if' test ':' suite ('elif' test ':' suite)*
2809 ['else' ':' suite]
2928 /* while_stmt: 'while' test ':' suite ['else' ':' suite] */
2975 /* for_stmt: 'for' exprlist 'in' testlist ':' suite ['els [all...] |