<s> def is_django_unittest ( request_or_item ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> from django . test import SimpleTestCase as TestCase <EOL> except ImportError : <EOL> from django . test import TestCase <EOL> cls = getattr ( request_or_item , '<STR_LIT>' , None ) <EOL> if cls is None : <EOL> return False <EOL> return issubclass ( cls , TestCase ) </s>
