def test_employer_user_type(self): """Company user type""" cuser = CompanyUserFactory.create() user = cuser.user self.assert_user_type('EMPLOYER', user)
def test_both(self): """User is both employer and staff.""" cuser = CompanyUserFactory.create() user = cuser.user user.is_staff = True self.assert_user_type('EMPLOYER', user)