/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_module.py | 12 foo = ModuleType.__new__(ModuleType) 13 self.assertTrue(foo.__dict__ is None) 14 self.assertRaises(SystemError, dir, foo) 16 s = foo.__name__ 20 self.assertEqual(foo.__doc__, ModuleType.__doc__) 24 foo = ModuleType("foo") 25 self.assertEqual(foo.__name__, "foo") 26 self.assertEqual(foo.__doc__, None) 27 self.assertEqual(foo.__dict__, {"__name__": "foo", "__doc__": None}) 31 foo = ModuleType("foo", "foodoc") [all …]
|
D | test_copy.py | 27 def __init__(self, foo): argument 28 self.foo = foo 30 return C(self.foo) 34 self.assertEqual(y.foo, x.foo) 38 def __new__(cls, foo): argument 40 obj.foo = foo 43 return (C, (obj.foo,)) 105 def __init__(self, foo): argument 106 self.foo = foo 108 return cmp(self.foo, other.foo) [all …]
|
D | test_with.py | 112 with foo: pass 121 foo = LacksEnter() 122 with foo: pass 131 foo = LacksExit() 132 with foo: pass 171 self.foo = None 172 with ct as self.foo: 175 self.assertEqual(self.foo, None) 245 with mock_contextmanager_generator() as foo: 246 self.assertInWithGeneratorInvariants(foo) [all …]
|
D | test_decorators.py | 76 def foo(): return 42 member in TestDecorators.test_single.C 77 self.assertEqual(C.foo(), 42) 78 self.assertEqual(C().foo(), 42) 89 def foo(): return 42 function 90 self.assertEqual(foo(), 42) 91 self.assertEqual(foo.author, 'Cleese') 187 def foo(self): return 42 member in TestDecorators.test_double.C 188 self.assertEqual(C().foo(), 42) 189 self.assertEqual(C.foo.abc, 1) 190 self.assertEqual(C.foo.xyz, "haha") [all …]
|
D | pyclbr_input.py | 7 def foo(c): pass member in Other 15 foo = Other().foo variable in C
|
D | test_argparse.py | 307 ('', NS(foo=None)), 308 ('-foo a', NS(foo='a')), 309 ('-foo -1', NS(foo='-1')), 310 ('-fo a', NS(foo='a')), 311 ('-f a', NS(foo='a')), 366 ('', NS(foo=None)), 367 ('--foo a', NS(foo='a')), 368 ('--foo=a', NS(foo='a')), 369 ('--foo -2.5', NS(foo='-2.5')), 370 ('--foo=-2.5', NS(foo='-2.5')), [all …]
|
D | tokenize_tests.txt | 106 foo bar \\ 108 foo''' 109 y = r"""foo 120 foo bar \\ 122 foo''' 123 y = Ur"""foo 177 def foo(): pass
|
D | test_abc.py | 17 def foo(self): pass function 18 self.assertTrue(foo.__isabstractmethod__) 24 def foo(self): pass function 25 self.assertTrue(foo.__isabstractmethod__) 32 def foo(self): return 3 member in TestABC.test_abstractproperty_basics.C 35 def foo(self): return super(D, self).foo member in TestABC.test_abstractproperty_basics.D 36 self.assertEqual(D().foo, 3) 43 def foo(self): pass # abstract member in TestABC.test_abstractmethod_integration.C 54 def foo(self): pass member in TestABC.test_abstractmethod_integration.E
|
D | test_descr.py | 335 def foo(self): return 1 member in OperatorsTest.test_spam_lists.C 338 self.assertEqual(a.foo(), 1) 387 def foo(self): return 1 member in OperatorsTest.test_spam_dicts.C 390 self.assertEqual(a.foo(), 1) 428 a2 = C(foo=1, bar=2) 660 a.foo = 12 661 x = a.foo 662 del a.foo 707 return int(self.foo()) 708 def foo(self): member in ClassPropertiesAndMethods.test_multiple_inheritence.Node [all …]
|
D | test_defaultdict.py | 28 d2 = defaultdict(list, foo=1, bar=2) 69 def foo(): return 43 function 70 d3 = defaultdict(foo) 71 self.assertTrue(d3.default_factory is foo) 73 self.assertEqual(repr(d3), "defaultdict(%s, {13: 43})" % repr(foo)) 77 def foo(): return 42 function 78 d2 = defaultdict(foo, {1: 2})
|
D | gdb_sample.py | 3 def foo(a, b, c): function 12 foo(1, 2, 3)
|
D | test_pep292.py | 48 d = dict(foo='baz') 94 m.bag.foo = Bag() 95 m.bag.foo.who = 'tim' 110 m.bag.foo = Bag() 111 m.bag.foo.who = 'tim' 142 eq(s.substitute(dict(foo='none'), mapping='bozo'), 157 eq(s.safe_substitute(dict(foo='none'), mapping='bozo'),
|
D | test_repr.py | 194 def foo(cls): pass member in ReprTests.test_descriptors.C 195 x = staticmethod(C.foo) 197 x = classmethod(C.foo) 260 …ageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation import foo 261 eq(repr(foo.foo), 262 "<class '%s.foo'>" % foo.__name__)
|
D | test_symtable.py | 54 foo = find_block(top, "foo") variable in SymtableTest 70 self.assertFalse(self.foo.is_optimized()) 71 self.assertTrue(self.foo.has_exec()) 72 self.assertTrue(self.foo.has_import_star()) 83 self.assertFalse(self.foo.has_children())
|
D | test_pkgutil.py | 117 import foo 118 self.assertEqual(foo.loads, 1) 120 self.assertEqual(foo.loads, 1)
|
D | test_property.py | 179 foo = Foo() 180 self.assertEqual(foo.spam, 1) 181 foo.spam = 2 182 self.assertEqual(foo.spam, 2)
|
D | cfgparser.1 | 2 foo=newbar
|
D | sample_doctest.py | 15 def foo(): function
|
D | badsyntax_future5.py | 3 import foo
|
D | test_contextlib.py | 93 @attribs(foo='bar') 101 self.assertEqual(baz.foo, 'bar') 216 def foo(): function 220 self.assertEqual(foo(), 1)
|
D | test_zlib.py | 52 foo = 'abcdefghijklmnop' 54 self.assertEqual(zlib.crc32(foo), -1808088941) 56 self.assertEqual(zlib.adler32(foo+foo), -721416943) 60 foo = 'abcdefghijklmnop' 61 self.assertEqual(binascii.crc32(foo), zlib.crc32(foo))
|
D | test_capi.py | 57 class foo(object):pass class 58 context = foo()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/ |
D | test_file_util.py | 64 foo = os.path.join(dir, 'foo') 65 write_file(foo, lines) 66 content = [line.strip() for line in open(foo).readlines()] 71 foo = os.path.join(src_dir, 'foo') 72 write_file(foo, 'content') 74 copy_file(foo, dst_dir)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/crashers/ |
D | infinite_loop_re.py | 15 foo = '<table cellspacing="0" cellpadding="0" style="border-collapse' variable 16 starttag.match(foo)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/test/data/ |
D | msg_45.txt | 1 From: <foo@bar.baz> 2 To: <baz@bar.foo>
|