def test_desc(self):

    class TestDescConstants(constants.Constants):
        TEST0 = (0, 'test')
        TEST1 = (1, 'test')
        TEST2 = (2, 'test2')
    self.assertEqual(TestDescConstants.TEST0.desc, 'test')
    self.assertEqual(TestDescConstants.TEST1.desc, 'test')
    self.assertEqual(TestDescConstants.TEST2.desc, 'test2')
def test_desc(self):

    class TestDescConstants(constants.Constants):
        TEST0 = (0, 'test')
        TEST1 = (1, 'test')
        TEST2 = (2, 'test2')
    self.assertEqual(TestDescConstants.TEST0.desc, 'test')
    self.assertEqual(TestDescConstants.TEST1.desc, 'test')
    self.assertEqual(TestDescConstants.TEST2.desc, 'test2')