def test_update(self, mock_client): report = Report(MOCK_REPORT) report.update() mock_client.put.assert_called_once_with(report, 'reports')