'Grade returned from Tool Provider is outside the range 0.0-1.0.'

def test_grade_not_in_range(self):

    self.xmodule.verify_oauth_body_sign = Mock()
    request = Request(self.environ)
    request.body = self.get_request_body(params={'grade': '10'})
    response = self.xmodule.grade_handler(request, '')
    real_response = self.get_response_values(response)
    expected_response = {'action': None, 'code_major': 'failure', 'description': 'Request    body    XML    parsing    error:    score    value    outside    the    permitted    range    of    0-1.', 'messageIdentifier': 'unknown'}
    self.assertEqual(response.status_code, 200)
    self.assertDictEqual(expected_response, real_response)
