def test_call_requests_patch(self, requests_patch):
     rm = RequestMaker(api_path='/', host='host', token='f4k3')
     requests_patch.return_value = MockResponse(200, '')
     rm.patch('/nowhere')
     self.assertTrue(requests_patch.called)
 def test_call_requests_patch(self, requests_patch):
     rm = RequestMaker(api_path="/", host="host", token="f4k3")
     requests_patch.return_value = MockResponse(200, "")
     rm.patch("/nowhere")
     self.assertTrue(requests_patch.called)
Example #3
0
 def test_call_requests_patch(self, requests_patch):
     rm = RequestMaker(api_path='/', host='host', token='f4k3')
     requests_patch.return_value = MockResponse(200, '')
     rm.patch('/nowhere')
     self.assertTrue(requests_patch.called)