Skip to content
Snippets Groups Projects
Commit 5ab7d84d authored by Ayub khan's avatar Ayub khan
Browse files

BOM-280

python3 compatibility
parent 1a886f3d
No related branches found
No related tags found
No related merge requests found
......@@ -111,10 +111,10 @@ class SignatureValidatorTest(TestCase):
Verify that the signature validaton library method is called using the
correct parameters derived from the HttpRequest.
"""
body = 'oauth_signature_method=HMAC-SHA1&oauth_version=1.0'
body = u'oauth_signature_method=HMAC-SHA1&oauth_version=1.0'
content_type = 'application/x-www-form-urlencoded'
request = RequestFactory().post('/url', body, content_type=content_type)
headers = {'Content-Type': content_type}
SignatureValidator(self.lti_consumer).verify(request)
verify_mock.assert_called_once_with(
request.build_absolute_uri(), 'POST', body, headers)
request.build_absolute_uri(), 'POST', body.encode('utf-8'), headers)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment