'Test XML request body parsing.
Tests that xml body was parsed successfully.'

def test_parse_grade_xml_body(self):

    mocked_request = self.get_signed_grade_mock_request()
    (message_identifier, sourced_id, grade, action) = self.xmodule.parse_grade_xml_body(mocked_request.body)
    self.assertEqual(self.defaults['messageIdentifier'], message_identifier)
    self.assertEqual(self.defaults['sourcedId'], sourced_id)
    self.assertEqual(self.defaults['grade'], grade)
    self.assertEqual(self.defaults['action'], action)
