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

def test_filter_by_org(self):

    alternate_course = self.create_course(org=md5(self.course.org).hexdigest())
    self.assertNotEqual(alternate_course.org, self.course.org)
    unfiltered_courses = self._make_api_call(self.staff_user, self.staff_user)
    for org in [self.course.org, alternate_course.org]:
        self.assertTrue(any(((course.org == org) for course in unfiltered_courses)))
    filtered_courses = self._make_api_call(self.staff_user, self.staff_user, org=self.course.org)
    self.assertTrue(all(((course.org == self.course.org) for course in filtered_courses)))
