'Response from Tool Provider is correct.'

def test_good_request(self):

    self.xmodule.verify_oauth_body_sign = Mock()
    self.xmodule.has_score = True
    request = Request(self.environ)
    request.body = self.get_request_body()
    response = self.xmodule.grade_handler(request, '')
    description_expected = 'Score    for    {sourcedId}    is    now    {score}'.format(sourcedId=self.defaults['sourcedId'], score=self.defaults['grade'])
    real_response = self.get_response_values(response)
    expected_response = {'action': 'replaceResultResponse', 'code_major': 'success', 'description': description_expected, 'messageIdentifier': self.defaults['messageIdentifier']}
    self.assertEqual(response.status_code, 200)
    self.assertDictEqual(expected_response, real_response)
    self.assertEqual(self.xmodule.module_score, float(self.defaults['grade']))
