Error in future API test now correctly raises a 404 exception.
This commit is contained in:
parent
1b2f0cd869
commit
4658b5c53a
1 changed files with 1 additions and 1 deletions
|
@ -44,5 +44,5 @@ class TestFramework(test_base.TestBase):
|
|||
# If the API version is unsupported, we should get an error
|
||||
# (it's a ValueError, since the returned 404 HTML page is not valid JSON)
|
||||
client = self.create_client_from_base(api_version=openphoto.LATEST_API_VERSION + 1)
|
||||
with self.assertRaises(ValueError):
|
||||
with self.assertRaises(openphoto.OpenPhoto404Error):
|
||||
client.get("hello.json")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue