'Test returns proper value when have proper access'

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

    has_access.return_value = True
    response = views.section_problem_grade_distrib(self.request, 'test/test/test', '1')
    self.assertEqual(json.dumps(self.simple_data), response.content)
