def test_update_with_resource_class(self, mock_events_response):
     res = EVENTS_API.update(Event(id=1))
     assert isinstance(res, Event)
     assert mock_events_response.calls[0].response.json(
     )["items"][0] == res.dump(camel_case=True)
 def test_create_multiple(self, mock_events_response):
     res = EVENTS_API.create([Event(external_id="1")])
     assert isinstance(res, EventList)
     assert mock_events_response.calls[0].response.json(
     )["items"] == res.dump(camel_case=True)