~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_export_pot.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) 2011 Canonical Ltd
 
1
# Copyright (C) 2011, 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
160
160
    """Checks for source context tracking objects"""
161
161
 
162
162
    def check_context(self, context, path, lineno):
163
 
        self.assertEquals((context.path, context.lineno), (path, lineno))
 
163
        self.assertEqual((context.path, context.lineno), (path, lineno))
164
164
 
165
165
    def test___init__(self):
166
166
        context = export_pot._ModuleContext("one.py")
182
182
        contextB2 = contextA.from_class(B)
183
183
        self.check_context(contextB2, path, 7)
184
184
        self.check_context(context, path, 1)
185
 
        self.assertEquals("", self.get_log())
 
185
        self.assertEqual("", self.get_log())
186
186
 
187
187
    def test_from_class_missing(self):
188
188
        """When class has no lineno the old context details are returned"""
209
209
        context2B = context1.from_string("two")
210
210
        self.check_context(context2B, path, 42)
211
211
        self.check_context(context, path, 1)
212
 
        self.assertEquals("", self.get_log())
 
212
        self.assertEqual("", self.get_log())
213
213
 
214
214
    def test_from_string_missing(self):
215
215
        """When string has no lineno the old context details are returned"""