'Verifies access to gated content for the given user is as expected.'

def assert_access_to_gated_content(self, user, expected_access):

    RequestCache.clear_request_cache()
    self.assertTrue(bool(has_access(user, 'load', self.seq1, self.course.id)))
    self.assertEquals(bool(has_access(user, 'load', self.seq2, self.course.id)), expected_access)
