'Example of signed request from LTI Provider.
When `namespace_v1p0` is set to True then the default namespase from
LTI 1.1 will be used. Otherwise fake namespace will be added to XML.'

def get_signed_grade_mock_request(self, namespace_lti_v1p1=True):

    mock_request = Mock()
    mock_request.headers = {'X-Requested-With': 'XMLHttpRequest', 'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': u'OAuth    oauth_nonce="135685044251684026041377608307",                                                                    oauth_timestamp="1234567890",    oauth_version="1.0",                                                                    oauth_signature_method="HMAC-SHA1",                                                                    oauth_consumer_key="test_client_key",                                                                    oauth_signature="my_signature%3D",                                                                    oauth_body_hash="JEpIArlNCeV4ceXxric8gJQCnBw="'}
    mock_request.url = u'http://testurl'
    mock_request.http_method = u'POST'
    params = {}
    if (not namespace_lti_v1p1):
        params = {'namespace': 'http://www.fakenamespace.com/fake'}
    mock_request.body = self.get_request_body(params)
    return mock_request
