Lines Matching defs:foo
211 def foo(cls): pass
212 x = staticmethod(C.foo)
213 self.assertEqual(repr(x), f'<staticmethod({C.foo!r})>')
214 x = classmethod(C.foo)
215 self.assertEqual(repr(x), f'<classmethod({C.foo!r})>')
295 self._check_path_limitations('foo')
297 write_file(os.path.join(self.subpkgname, 'foo.py'), '''\
298 class foo(object):
302 from areallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation import foo
303 eq(repr(foo.foo),
304 "<class '%s.foo'>" % foo.__name__)