def isTestCase(obj):
 try:
  return issubclass(obj, pyunit.TestCase)
 except TypeError:
  return False

def isTestCase ( obj ) : try : return issubclass ( obj , pyunit . TestCase ) except TypeError : return False
returns c{true} if c{obj} is a class that contains test cases .