Skip to content

Commit

Permalink
python only catches the HTTP 403 code
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtazz committed Oct 1, 2010
1 parent 0e79703 commit d519ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_notifo_message.py
Expand Up @@ -32,7 +32,7 @@ def test_message_with_object(self):
def test_message_banned(self):
res = send_message(self.banned, self.banned_token,
to=self.user, msg="foo test")
self.assertEqual(1102, res["response_code"])
self.assertEqual(403, res["response_code"])

def test_message_provider(self):
res = send_message(self.provider, self.provider_token,
Expand All @@ -42,7 +42,7 @@ def test_message_provider(self):
def test_message_provider_banned(self):
res = send_message(self.provider_banned, self.provider_banned_token,
to=self.user, msg="foo test")
self.assertEqual(1102, res["response_code"])
self.assertEqual(403, res["response_code"])

if __name__ == '__main__':
unittest.main()

0 comments on commit d519ba3

Please sign in to comment.