Example #1
0
 def test_label_with_code_object(self):
     code = self.make_code_object()
     self.assertEqual(label(code), 'somefunc sourcefile.py:2')
Example #2
0
 def test_label(self):
     self.assertEqual(label('somefunc'), 'somefunc')
Example #3
0
 def test_label(self):
     self.assertEqual(label("somefunc"), "somefunc")
Example #4
0
 def test_label_with_code_object(self):
     code = self.make_code_object()
     self.assertEqual(label(code), "somefunc sourcefile.py:2")
Example #5
0
 def test_label(self):
     self.assertEqual(label('somefunc'), 'somefunc')