def suite():
    suite = unittest.TestSuite()
for test_parameter in test_parameters:
    loadedtests = unittest.TestLoader().loadTestsFromTestCase(WidgetTestCase)
for t in loadedtests:
    t.parameter = test_parameter
suite.addTests(loadedtests)
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
    OtherWidgetTestCases))
return suite
Giving parameters into TestCase from Suite in python