'The key difference between this test and test_access above is that
removal via "Edit Membership" and "Leave Team" emit different events
despite hitting the same API endpoint, due to the \'admin\' query string.'

def test_leave_team(self):

    url = reverse('team_membership_detail', args=[self.solar_team.team_id, self.users['student_enrolled'].username])
    self.make_call(url, 204, 'delete', user='student_enrolled')
    self.assert_event_emitted('edx.team.learner_removed', team_id=self.solar_team.team_id, user_id=self.users['student_enrolled'].id, remove_method='self_removal')
