def is_nose_class(cls):
 return any(((name in [u'setUp', u'tearDown']) for (name, _) in inspect.getmembers(cls)))

def is_nose_class ( cls ) : return any ( ( ( name in [ u'setUp' , u'tearDown' ] ) for ( name , _ ) in inspect . getmembers ( cls ) ) )
check if supplied class looks like nose testcase .