def setUp(self): if hasattr(_thread_locals, 'user'): delattr(_thread_locals, 'user') User.objects.all().delete() delete_all(AuditEvent, 'auditcare/all_events') self.client = Client() self._createUser()
def setUp(self): if hasattr(_thread_locals, "user"): delattr(_thread_locals, "user") User.objects.all().delete() delete_all(AuditEvent, "auditcare/all_events") self.client = Client() self._createUser()
def setUp(self): super(AuthenticationTestCase, self).setUp() if hasattr(_thread_locals, 'user'): delattr(_thread_locals, 'user') User.objects.all().delete() delete_all(AuditEvent, 'auditcare/all_events') self.client = Client() self._createUser()