Patch testing for /funds endpoint

This commit is contained in:
Cameron Yick
2017-08-28 22:57:32 -04:00
parent 9b5685dd82
commit 1410175526
2 changed files with 22 additions and 8 deletions

View File

@@ -30,10 +30,9 @@ class TestRestClient(TestCase):
# Test 404 error
def test_invalid_url(self):
with self.assertRaisesRegexp(RestClientError, "404") as context:
with self.assertRaisesRegexp(RestClientError, "404"):
# Should return 404 error
self._client._request('GET', "bing_is_great")
print(context)
# Todo: try using an invalid HTTP method (i.e. SNAG) and catch the error
@@ -61,7 +60,6 @@ class TestRestClientWithSession(TestCase):
# Test 404 error
def test_invalid_url(self):
with self.assertRaisesRegexp(RestClientError, "404") as context:
with self.assertRaisesRegexp(RestClientError, "404"):
# Should return 404 error
self._client._request('GET', "bing_is_great")
print(context)