Exemplo n.º 1
0
 def test_invokes_delete_on_session(self):
     _invoker.send_delete(self.context)
     assert_that(self.session.delete_invoked).is_true()
     assert_that(self.session.request_url).is_equal_to(self.context.request_url)
Exemplo n.º 2
0
 def test_delete_stores_response_in_context(self):
     _invoker.send_delete(self.context)
     assert_that(self.context.response).is_same_as(self.response)
Exemplo n.º 3
0
 def test_delete_request_includes_params(self):
     _invoker.send_delete(self.context)
     assert_that(self.session.request_params).is_same_as(self.context.request_params)