Skip to content

Commit

Permalink
[Feature #145028639] Changed the output operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Andretalik committed May 22, 2017
1 parent b0e873b commit 02474d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hc/accounts/tests/test_switch_team.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ def test_it_switches(self):
def test_it_checks_team_membership(self):
self.client.login(username="charlie@example.org", password="password")

url = "/accounts/switch_team/%s/" % self.alice.username
url = "/accounts/switch_team/{}/".format(self.alice.username)
r = self.client.get(url)
self.assertEqual(r.status_code, 403)
###** Assert the expected error code**

def test_it_switches_to_own_team(self):
self.client.login(username="alice@example.org", password="password")
url = "/accounts/switch_team/%s/" % self.alice.username
url = "/accounts/switch_team/{}/" .format(self.alice.username)
r = self.client.get(url, follow=True)
self.assertEqual(r.status_code, 200)
### **Assert the expected error code**

0 comments on commit 02474d4

Please sign in to comment.