~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_version_info.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) 2005-2011 Canonical Ltd
 
1
# Copyright (C) 2005-2012, 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
339
339
        builder = CustomVersionInfoBuilder(wt.branch, working_tree=wt,
340
340
            template='revno: {revno}')
341
341
        builder.generate(sio)
342
 
        self.assertEquals("revno: 0", sio.getvalue())
 
342
        self.assertEqual("revno: 0", sio.getvalue())
343
343
 
344
344
        builder = CustomVersionInfoBuilder(wt.branch, working_tree=wt, 
345
345
            template='{revno} revid: {revision_id}')
353
353
        builder = CustomVersionInfoBuilder(wt.branch, working_tree=wt, 
354
354
            template='{revno} revid: {revision_id}')
355
355
        builder.generate(sio)
356
 
        self.assertEquals("1.1.1 revid: o2", sio.getvalue())
 
356
        self.assertEqual("1.1.1 revid: o2", sio.getvalue())
357
357
 
358
358
    def regen(self, wt, tpl, **kwargs):
359
359
        sio = StringIO()