Skip to content

Commit e1de326

Browse files
committed
For #34814 - test for both old and new responses
1 parent 7a022ec commit e1de326

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,15 +1626,15 @@ def test_human_user_sudo_auth_fails(self):
16261626
http_proxy=self.config.http_proxy,
16271627
sudo_as_login="blah" )
16281628
self.assertRaises(shotgun_api3.Fault, x.find_one, 'Shot', [])
1629-
expected = "The user does not have permission to 'sudo': %s" % self.config.human_login
1629+
expected = "The user does not have permission to 'sudo':"
16301630
try :
16311631
x.find_one('Shot',[])
16321632
except shotgun_api3.Fault, e:
16331633
# py24 exceptions don't have message attr
16341634
if hasattr(e, 'message'):
1635-
self.assertEquals(expected, e.message)
1635+
self.assert_(e.message.startswith(expected))
16361636
else:
1637-
self.assertEquals(expected, e.args[0])
1637+
self.assert_(e.args[0].startswith(expected))
16381638

16391639

16401640

0 commit comments

Comments
 (0)