Permalink
Browse files

python only catches the HTTP 403 code

  • Loading branch information...
1 parent 0e79703 commit d519ba32b4d2d660dd230082bde46b73c50baeab @mrtazz committed Oct 1, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/test_notifo_message.py
@@ -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,
@@ -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.