~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Packman
  • Date: 2012-02-01 13:24:42 UTC
  • mto: (6437.23.4 2.5)
  • mto: This revision was merged to the branch mainline in revision 6462.
  • Revision ID: martin.packman@canonical.com-20120201132442-ela7jc4mxv4b058o
Treat path for .bzr.log as unicode

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