'Assert that a user has access to the given action for a given course.
Test with both the given course and with a CourseOverview of the given
course.
Arguments:
user (User): a user.
action (str): type of access to test.
course (CourseDescriptor): a course.'

def assertCanAccessCourse(self, user, action, course):

    self.assertTrue(has_access(user, action, course))
    self.assertTrue(has_access(user, action, CourseOverview.get_from_id(course.id)))
