'Test that the user gets her grade in case she answered tests with an insufficient score.'

@ddt.data(((2, 5), {'letter_grade': None, 'percent': 0.4, 'passed': False}), ((5, 5), {'letter_grade': 'Pass', 'percent': 1, 'passed': True}))
@ddt.unpack
def test_grade(self, grade, result):

    with mock_get_score(*grade):
        resp = self.client.get(self.get_url(self.student.username))
    self.assertEqual(resp.status_code, status.HTTP_200_OK)
    expected_data = {'username': self.student.username, 'course_key': str(self.course_key)}
    expected_data.update(result)
    self.assertEqual(resp.data, [expected_data])
