'Verify that CourseOverviews are filtered by the provided org key.'

def test_filter_by_org(self):

    self.setup_user(self.staff_user)
    alternate_course = self.create_course(org=md5(self.course.org).hexdigest())
    self.assertNotEqual(alternate_course.org, self.course.org)
    unfiltered_response = self.verify_response(params={'username': self.staff_user.username})
    for org in [self.course.org, alternate_course.org]:
        self.assertTrue(any(((course['org'] == org) for course in unfiltered_response.data['results'])))
    filtered_response = self.verify_response(params={'org': self.course.org, 'username': self.staff_user.username})
    self.assertTrue(all(((course['org'] == self.course.org) for course in filtered_response.data['results'])))
