예제 #1
0
 def test_resolve_by_object(self):
 
     def t1():
         pass        
     self.assertEqual(pycode.resolve(t1), (t1, 't1'))
예제 #2
0
 def test_resolve_by_str(self):
     
     self.assertEqual(pycode.resolve('dir'), (dir, 'dir'))
     self.assertEqual(pycode.resolve('object'), (object, 'object'))