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