'Patches the team with team_id using data. Verifies expected_status.'

def patch_team_detail(self, team_id, expected_status, data=None, **kwargs):

    return self.make_call(reverse('teams_detail', args=[team_id]), expected_status, 'patch', (json.dumps(data) if data else None), 'application/merge-patch+json', **kwargs)
