Home
last modified time | relevance | path

Searched refs:foo (Results 1 – 25 of 75) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_module.py12 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 …]
Dtest_copy.py27 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 …]
Dtest_with.py112 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 …]
Dtest_decorators.py76 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 …]
Dpyclbr_input.py7 def foo(c): pass member in Other
15 foo = Other().foo variable in C
Dtest_argparse.py307 ('', 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 …]
Dtokenize_tests.txt106 foo bar \\
108 foo'''
109 y = r"""foo
120 foo bar \\
122 foo'''
123 y = Ur"""foo
177 def foo(): pass
Dtest_abc.py17 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
Dtest_descr.py335 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 …]
Dtest_defaultdict.py28 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})
Dgdb_sample.py3 def foo(a, b, c): function
12 foo(1, 2, 3)
Dtest_pep292.py48 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'),
Dtest_repr.py194 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__)
Dtest_symtable.py54 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())
Dtest_pkgutil.py117 import foo
118 self.assertEqual(foo.loads, 1)
120 self.assertEqual(foo.loads, 1)
Dtest_property.py179 foo = Foo()
180 self.assertEqual(foo.spam, 1)
181 foo.spam = 2
182 self.assertEqual(foo.spam, 2)
Dcfgparser.12 foo=newbar
Dsample_doctest.py15 def foo(): function
Dbadsyntax_future5.py3 import foo
Dtest_contextlib.py93 @attribs(foo='bar')
101 self.assertEqual(baz.foo, 'bar')
216 def foo(): function
220 self.assertEqual(foo(), 1)
Dtest_zlib.py52 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))
Dtest_capi.py57 class foo(object):pass class
58 context = foo()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/
Dtest_file_util.py64 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/
Dinfinite_loop_re.py15 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/
Dmsg_45.txt1 From: <foo@bar.baz>
2 To: <baz@bar.foo>

123