Mercurial > p > roundup > code
diff test/test_xmlrpc.py @ 5471:28613ada27db
check excpetion.args instead of exception.message
| author | Christof Meerwald <cmeerw@cmeerw.org> |
|---|---|
| date | Sun, 29 Jul 2018 00:49:54 +0100 |
| parents | e46ce04d5bbc |
| children | 7f3dfdd6a620 |
line wrap: on
line diff
--- a/test/test_xmlrpc.py Sat Jul 28 22:39:24 2018 +0100 +++ b/test/test_xmlrpc.py Sun Jul 29 00:49:54 2018 +0100 @@ -169,7 +169,7 @@ with self.assertRaises(Exception) as cm: self.server.action('bogus') print(cm.exception) - self.assertEqual(cm.exception.message, + self.assertEqual(cm.exception.args[0], 'action "bogus" is not supported ') def testAuthDeniedEdit(self):
