~tribaal/txaws/xss-hardening

« back to all changes in this revision

Viewing changes to txaws/client/tests/test_client.py

  • Committer: Jamu Kakar
  • Date: 2011-04-21 16:40:58 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: jkakar@kakar.ca-20110421164058-ann4pjrv4ud2hh60
- Fixed yet another Python 2.6 deprecation warning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        failure = Failure(Exception("timeout"))
42
42
        error = self.assertRaises(Exception, error_wrapper, failure, None)
43
43
        self.assertTrue(isinstance(error, Exception))
44
 
        self.assertEquals(error.message, "timeout")
 
44
        self.assertEquals(str(error), "timeout")
45
45
 
46
46
    def test_connection_error(self):
47
47
        failure = Failure(ConnectionRefusedError("timeout"))