a class for testing multiple test cases in python