def test_invokes_patch_with_json_payload(self):
     _invoker.send_patch(self.context)
     assert_that(self.session.request_json).is_equal_to(self.context.request_json_payload)
 def test_patch_stores_response_in_context(self):
     _invoker.send_patch(self.context)
     assert_that(self.context.response).is_same_as(self.response)
 def test_invokes_patch_on_session(self):
     _invoker.send_patch(self.context)
     assert_that(self.session.patch_invoked).is_true()
     assert_that(self.session.request_url).is_equal_to(self.context.request_url)
 def test_patch_request_includes_params(self):
     _invoker.send_patch(self.context)
     assert_that(self.session.request_params).is_same_as(self.context.request_params)