def test_resolve_by_object(self): def t1(): pass self.assertEqual(pycode.resolve(t1), (t1, 't1'))
def test_resolve_by_str(self): self.assertEqual(pycode.resolve('dir'), (dir, 'dir')) self.assertEqual(pycode.resolve('object'), (object, 'object'))