def test_label_with_code_object(self): code = self.make_code_object() self.assertEqual(label(code), 'somefunc sourcefile.py:2')
def test_label(self): self.assertEqual(label('somefunc'), 'somefunc')
def test_label(self): self.assertEqual(label("somefunc"), "somefunc")
def test_label_with_code_object(self): code = self.make_code_object() self.assertEqual(label(code), "somefunc sourcefile.py:2")