~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__rio.py

  • Committer: Vincent Ladeuil
  • Date: 2016-02-01 18:09:18 UTC
  • mfrom: (6614.1.3 assert)
  • mto: This revision was merged to the branch mainline in revision 6615.
  • Revision ID: v.ladeuil+lp@free.fr-20160201180918-jqtq8ol6gdbbbtpv
Fix deprecated assertions to unblock release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2009, 2010, 2016 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.assertEquals(result, s)
 
66
        self.assertEqual(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.assertEquals(result, s)
 
122
        self.assertEqual(result, s)
123
123
        if s is not None:
124
124
            for tag, value in s.iter_pairs():
125
125
                self.assertIsInstance(tag, str)