class MyTest(unittest.TestCase):

    def __init__(self, num, expected):
        unittest.TestCase.__init__(self, 'evenTest')
self.num = num
self.expected = expected

def evenTest(self):
    self.assertEqual(self.expected, isEven(self.num))
Providing test data in python