Esempio n. 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()
Esempio n. 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()
Esempio n. 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()
Esempio n. 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()