Пример #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()
Пример #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()
Пример #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()
Пример #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()