Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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)