~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__rio.py

  • Committer: Patch Queue Manager
  • Date: 2016-02-01 19:13:13 UTC
  • mfrom: (6614.2.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20160201191313-wdfvmfff1djde6oq
(vila) Release 2.7.0 (Vincent Ladeuil)

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)