Added support for post data and updated test
This commit is contained in:
parent
b751482183
commit
24dce45a06
2 changed files with 3 additions and 3 deletions
|
@ -17,6 +17,5 @@ class TestApiRequest(unittest.TestCase):
|
|||
mock_method.return_value = read
|
||||
request = ApiRequest('mm', ApcUrl(u))()
|
||||
self.assertEquals(request, json.loads(ret))
|
||||
mock_method.assert_called_once_with(u)
|
||||
|
||||
if __name__ == '__main__': unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue