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