~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_revno.py

  • Committer: Patch Queue Manager
  • Date: 2015-10-05 13:45:00 UTC
  • mfrom: (6603.3.1 bts794146)
  • Revision ID: pqm@pqm.ubuntu.com-20151005134500-v244rho557tv0ukd
(vila) Resolve Bug #1480015: Test failure: hexify removed from paramiko
 (Andrew Starr-Bochicchio) (Andrew Starr-Bochicchio)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007, 2009, 2011, 2012, 2016 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007, 2009 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
34
34
        os.mkdir('a')
35
35
        os.chdir('a')
36
36
        bzr('init')
37
 
        self.assertEqual(int(bzr('revno')), 0)
 
37
        self.assertEquals(int(bzr('revno')), 0)
38
38
 
39
39
        with open('foo', 'wb') as f: f.write('foo\n')
40
40
        bzr('add foo')
41
41
        bzr('commit -m foo')
42
 
        self.assertEqual(int(bzr('revno')), 1)
 
42
        self.assertEquals(int(bzr('revno')), 1)
43
43
 
44
44
        os.mkdir('baz')
45
45
        bzr('add baz')
46
46
        bzr('commit -m baz')
47
 
        self.assertEqual(int(bzr('revno')), 2)
 
47
        self.assertEquals(int(bzr('revno')), 2)
48
48
 
49
49
        os.chdir('..')
50
 
        self.assertEqual(int(bzr('revno a')), 2)
51
 
        self.assertEqual(int(bzr('revno a/baz')), 2)
 
50
        self.assertEquals(int(bzr('revno a')), 2)
 
51
        self.assertEquals(int(bzr('revno a/baz')), 2)
52
52
 
53
53
    def test_revno_tree(self):
54
54
        # Make branch and checkout