@@ -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+
341342if __name__ == '__main__' :
342343 runner = unittest .TextTestRunner ()
343344 unittest .main (testRunner = runner )
0 commit comments