~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__rio.py

  • Committer: Andrew Starr-Bochicchio
  • Date: 2015-07-31 01:04:41 UTC
  • mto: This revision was merged to the branch mainline in revision 6606.
  • Revision ID: a.starr.b@gmail.com-20150731010441-3domwjjtnjijxlr2
Use hexlify() from binascii directly as paramiko removed hexify().

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009, 2010, 2016 Canonical Ltd
 
1
# Copyright (C) 2009, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
63
63
 
64
64
    def assertReadStanza(self, result, line_iter):
65
65
        s = self.module._read_stanza_utf8(line_iter)
66
 
        self.assertEqual(result, s)
 
66
        self.assertEquals(result, s)
67
67
        if s is not None:
68
68
            for tag, value in s.iter_pairs():
69
69
                self.assertIsInstance(tag, str)
119
119
 
120
120
    def assertReadStanza(self, result, line_iter):
121
121
        s = self.module._read_stanza_unicode(line_iter)
122
 
        self.assertEqual(result, s)
 
122
        self.assertEquals(result, s)
123
123
        if s is not None:
124
124
            for tag, value in s.iter_pairs():
125
125
                self.assertIsInstance(tag, str)