def test_unique(self):
    with self.assertRaises(ValueError):

        class TestUniqueConstants(constants.Constants):
            TEST0 = (0, 'test0')
            TEST1 = (0, 'test1')
def test_unique(self):
    with self.assertRaises(ValueError):

        class TestUniqueConstants(constants.Constants):
            TEST0 = (0, 'test0')
            TEST1 = (0, 'test1')