def make_test_case(base_case):
 class FooTests(base_case, ):
  def test_something(self):
   pass
 return FooTests('test_something')

def make_test_case ( base_case ) : class FooTests ( base_case , ) : def test_something ( self ) : pass return FooTests ( 'test_something' )
make a single test that subclasses base_case and passes .