def setUp(self):
     super(TestUserAuth, self).setUp()
     self.email = '*****@*****.**'
     user = UserFactory.create(email=self.email)
     user.save()
     AcceptedEmailDomains.create(domain='foo.com')
     DepartmentFactory.create(name='New User').save()
     self.department1 = DepartmentFactory.create(name='Test').save()
Beispiel #2
0
 def setUp(self):
     super(TestUsers, self).setUp()
     self.staff = RoleFactory.create(name='staff')
     AcceptedEmailDomainsFactory.create(domain='foo.com')
     self.new_dept = DepartmentFactory.create(name='New User').save()
     self.department1 = DepartmentFactory.create(name='Test').save()