def testOneNumber(self):
    self.assertEqual(self.number, 33)

def shortDescription(self):
    return 'DataTestCase for number %d' % self.number

def get_test_data_suite():
    numbers = [0, 11, 222, 33, 44, 555, 6, 77, 8, 9999]
return unittest.TestSuite([DataTestCase(n) for n in numbers])
if __name__ == '__main__':
    testRunner = unittest.TextTestRunner()
testRunner.run(get_test_data_suite())
How to test same assertion for large amount of data