def test_cant_create_a_new_user(self):
     team = Team()
     team.name = "Team1"
     team.role_id = factory.RoleFactory().pk
     team.organization_id = factory.OrganizationFactory().pk
     self.assertFalse(team.save())
 def test_cant_create_a_new_user(self):
     team = Team()
     team.name = "Team1"
     team.role_id = factory.RoleFactory().pk
     team.organization_id = factory.OrganizationFactory().pk
     self.assertFalse(team.save())
Example #3
0
 def test_cant_create_a_new_user(self):
     team = Team()
     team.name = "Team1"
     team.role_id = mommy.make_recipe('account.role', ).pk
     team.organization_id = mommy.make('Organization').pk
     self.assertFalse(team.save())