'Test for no access'

@patch('class_dashboard.views.has_instructor_access_for_class')
def test_all_sequential_open_distribution_no_access(self, has_access):

    has_access.return_value = False
    response = views.all_sequential_open_distrib(self.request, 'test/test/test')
    self.assertEqual('{"error":    "Access    Denied:    User    does    not    have    access    to    this    course\'s    data"}', response.content)
