def test_call_requests_put(self, requests_put): rm = RequestMaker(api_path='/', host='host', token='f4k3') requests_put.return_value = MockResponse(200, '') rm.put('/nowhere') self.assertTrue(requests_put.called)
def test_call_requests_put(self, requests_put): rm = RequestMaker(api_path="/", host="host", token="f4k3") requests_put.return_value = MockResponse(200, "") rm.put("/nowhere") self.assertTrue(requests_put.called)