Example #1
0
 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()
Example #2
0
 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()
Example #3
0
 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()
Example #4
0
 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()