File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -1013,7 +1013,7 @@ def setUp(self):
10131013
10141014 def test_authenticate_succeeds (self ):
10151015 id_site_url = self .app .build_id_site_redirect_url (
1016- 'http ://localhost:5000 ' )
1016+ 'https ://hi.com ' )
10171017
10181018 resp = get (id_site_url , allow_redirects = False )
10191019 jwt = resp .headers ['Location' ].split ('jwt=' )[1 ]
@@ -1034,8 +1034,15 @@ def test_authenticate_succeeds(self):
10341034 'Referer' : origin ,
10351035 'Content Type' : 'application/json'
10361036 }
1037+
10371038 user_pass = '%s:%s' % (self .acc .email , self .password )
1038- encrypted_value = base64 .b64encode (bytes (user_pass ))
1039+ try :
1040+ encrypted_value = base64 .b64encode (bytes (user_pass ))
1041+ except :
1042+ # Python 3
1043+ encrypted_value = base64 .b64encode (bytes (user_pass , 'utf-8' ))
1044+ encrypted_value = encrypted_value .decode ('utf-8' )
1045+
10391046 body = {
10401047 'value' : encrypted_value ,
10411048 'type' : 'basic'
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ def test_custom_data_search(self):
349349 self .assertTrue ('group2' in group .name )
350350 self .assertEqual (group .custom_data ['omg' ], 'noway' )
351351
352- for gorup in self .dir .groups .earch ('customData.omg=wow' ):
352+ for group in self .dir .groups .search ('customData.omg=wow' ):
353353 self .assertTrue ('group3' in group .name )
354354 self .assertTrue (group .custom_data ['omg' ], ['wow' , 'cool' ])
355355
You can’t perform that action at this time.
0 commit comments