Skip to content

Commit 606e21a

Browse files
authored
Pycodestyle W605: Use r'strings' instead of 'strings'
1 parent a3fe9b8 commit 606e21a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/src/OneLogin/saml2_tests/authn_request_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def testCreateDeflatedSAMLRequestURLParameter(self):
272272
'SAMLRequest': authn_request.get_request()
273273
}
274274
auth_url = OneLogin_Saml2_Utils.redirect('http://idp.example.com/SSOService.php', parameters, True)
275-
self.assertRegexpMatches(auth_url, '^http://idp\.example\.com\/SSOService\.php\?SAMLRequest=')
275+
self.assertRegexpMatches(auth_url, r'^http://idp\.example\.com\/SSOService\.php\?SAMLRequest=')
276276
exploded = urlparse(auth_url)
277277
exploded = parse_qs(exploded[4])
278278
payload = exploded['SAMLRequest'][0]
@@ -301,7 +301,7 @@ def testCreateEncSAMLRequest(self):
301301
'SAMLRequest': authn_request.get_request()
302302
}
303303
auth_url = OneLogin_Saml2_Utils.redirect('http://idp.example.com/SSOService.php', parameters, True)
304-
self.assertRegexpMatches(auth_url, '^http://idp\.example\.com\/SSOService\.php\?SAMLRequest=')
304+
self.assertRegexpMatches(auth_url, r'^http://idp\.example\.com\/SSOService\.php\?SAMLRequest=')
305305
exploded = urlparse(auth_url)
306306
exploded = parse_qs(exploded[4])
307307
payload = exploded['SAMLRequest'][0]
@@ -338,6 +338,7 @@ def testAttributeConsumingService(self):
338338

339339
self.assertRegexpMatches(inflated, 'AttributeConsumingServiceIndex="1"')
340340

341+
341342
if __name__ == '__main__':
342343
runner = unittest.TextTestRunner()
343344
unittest.main(testRunner=runner)

0 commit comments

Comments
 (0)