This works:
class TestSequenceFunctions(unittest.TestCase):
def test_choice(self):
self.assertEquals(1, 1, 'they are equal!')开发者_运维问答
class OtherClass ( val ):
But I want the assertEquals in the OtherClass class and call it from the TestSequenceFunctions class. But it generates a error: "global name "self" is not defined". Please help ;)
精彩评论