404 status should raise 404 error, even if JSON is valid.

This commit is contained in:
sneakypete81 2013-06-30 17:17:03 +01:00
parent 64d762d709
commit 921410d8f8
2 changed files with 3 additions and 7 deletions

View file

@ -61,8 +61,6 @@ class TestHttpErrors(unittest.TestCase):
with self.assertRaises(openphoto.OpenPhotoError):
self.client.post(self.test_endpoint)
# TODO: 404 status should raise 404 error, even if JSON is valid
@unittest.expectedFailure
@httpretty.activate
def test_get_with_404_status(self):
"""
@ -73,8 +71,6 @@ class TestHttpErrors(unittest.TestCase):
with self.assertRaises(openphoto.OpenPhoto404Error):
self.client.get(self.test_endpoint)
# TODO: 404 status should raise 404 error, even if JSON is valid
@unittest.expectedFailure
@httpretty.activate
def test_post_with_404_status(self):
"""