/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010, 2012, 2016 Canonical Ltd
 
1
# Copyright (C) 2006-2010, 2012 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
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
"""Black-box tests for brz nick."""
 
17
"""Black-box tests for bzr nick."""
18
18
 
19
 
import breezy
20
 
from breezy import (
 
19
import bzrlib
 
20
from bzrlib import (
21
21
    branch,
22
22
    osutils,
23
23
    tests,
33
33
            cmd.extend(['--directory', directory])
34
34
        # The nick command outputs the nick on a single line
35
35
        actual = self.run_bzr(cmd, working_dir=working_dir)[0][:-1]
36
 
        self.assertEqual(expected, actual)
 
36
        self.assertEquals(expected, actual)
37
37
        if explicit is not None:
38
38
            br = branch.Branch.open(working_dir)
39
39
            conf = br.get_config()
40
 
            self.assertEqual(explicit, conf.has_explicit_nickname())
 
40
            self.assertEquals(explicit, conf.has_explicit_nickname())
41
41
            if explicit:
42
 
                self.assertEqual(expected, conf._get_explicit_nickname())
 
42
                self.assertEquals(expected, conf._get_explicit_nickname())
43
43
 
44
44
    def test_nick_command(self):
45
 
        """brz nick for viewing, setting nicknames"""
 
45
        """bzr nick for viewing, setting nicknames"""
46
46
        self.make_branch_and_tree('me.dev')
47
47
        self.assertNick('me.dev', working_dir='me.dev')
48
48
        # set the nickname