'Call `remove_user_from_cohort` with the given username and cohort.'

def request_remove_user_from_cohort(self, username, cohort):

    if (username is not None):
        request = RequestFactory().post('dummy_url', {'username': username})
    else:
        request = RequestFactory().post('dummy_url')
    request.user = self.staff_user
    response = remove_user_from_cohort(request, unicode(self.course.id), cohort.id)
    self.assertEqual(response.status_code, 200)
    return json.loads(response.content)
