~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_aliases.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) 2006, 2007, 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2006, 2007, 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
49
49
        tree.add('a')
50
50
        tree.commit(message='1')
51
51
 
52
 
        self.assertEquals(bzr('c a'), str1)
 
52
        self.assertEqual(bzr('c a'), str1)
53
53
 
54
54
        self.build_tree_contents([('a', str2)])
55
55
        tree.commit(message='2')
56
56
 
57
 
        self.assertEquals(bzr('c a'), str2)
58
 
        self.assertEquals(bzr('c1 a'), str1)
59
 
        self.assertEquals(bzr('c1 --revision 2 a'), str2)
 
57
        self.assertEqual(bzr('c a'), str2)
 
58
        self.assertEqual(bzr('c1 a'), str1)
 
59
        self.assertEqual(bzr('c1 --revision 2 a'), str2)
60
60
 
61
61
        # If --no-aliases isn't working, we will not get retcode=3
62
62
        bzr('--no-aliases c a', retcode=3)
63
63
 
64
64
        # If --no-aliases breaks all of bzr, we also get retcode=3
65
65
        # So we need to catch the output as well
66
 
        self.assertEquals(bzr_catch_error('--no-aliases c a',
 
66
        self.assertEqual(bzr_catch_error('--no-aliases c a',
67
67
                                          retcode=None),
68
68
                          'bzr: ERROR: unknown command "c"\n')
69
69