'Generate a proper LTI request object'

def get_signed_grade_mock_request_with_correct_signature(self):

    mock_request = Mock()
    mock_request.headers = {'X-Requested-With': 'XMLHttpRequest', 'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': u'OAuth    realm="https://testurl/",    oauth_body_hash="wwzA3s8gScKD1VpJ7jMt9b%2BMj9Q%3D",oauth_nonce="18821463",    oauth_timestamp="1409321145",    oauth_consumer_key="__consumer_key__",    oauth_signature_method="HMAC-SHA1",    oauth_version="1.0",    oauth_signature="fHsE1hhIz76/msUoMR3Lyb7Aou4%3D"'}
    mock_request.url = u'https://testurl'
    mock_request.http_method = u'POST'
    mock_request.method = mock_request.http_method
    mock_request.body = '<?xml    version=\'1.0\'    encoding=\'utf-8\'?>\n<imsx_POXEnvelopeRequest    xmlns="http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0"><imsx_POXHeader><imsx_POXRequestHeaderInfo><imsx_version>V1.0</imsx_version><imsx_messageIdentifier>edX_fix</imsx_messageIdentifier></imsx_POXRequestHeaderInfo></imsx_POXHeader><imsx_POXBody><replaceResultRequest><resultRecord><sourcedGUID><sourcedId>MITxLTI/MITxLTI/201x:localhost%3A8000-i4x-MITxLTI-MITxLTI-lti-3751833a214a4f66a0d18f63234207f2:363979ef768ca171b50f9d1bfb322131</sourcedId></sourcedGUID><result><resultScore><language>en</language><textString>0.32</textString></resultScore></result></resultRecord></replaceResultRequest></imsx_POXBody></imsx_POXEnvelopeRequest>'
    return mock_request
