~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-06 02:31:39 UTC
  • mfrom: (2665.1.2 stricter-run_bzr)
  • Revision ID: pqm@pqm.ubuntu.com-20070806023139-97nrt9mu4qihcdf3
(robertc) Merge Michael Hudson's run_bzr keyword usage fix. (Michael Hudson)

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        """bzr nick for viewing, setting nicknames"""
29
29
        os.mkdir('me.dev')
30
30
        os.chdir('me.dev')
31
 
        self.runbzr('init')
32
 
        nick = self.runbzr("nick",backtick=True)
 
31
        self.run_bzr('init')
 
32
        nick = self.run_bzr('nick')[0]
33
33
        self.assertEqual(nick, 'me.dev\n')
34
 
        nick = self.runbzr("nick moo")
35
 
        nick = self.runbzr("nick",backtick=True)
 
34
        # set the nickname
 
35
        self.run_bzr("nick moo")
 
36
        nick = self.run_bzr('nick')[0]
36
37
        self.assertEqual(nick, 'moo\n')
37
38
 
38
39
    def test_autonick_urlencoded(self):
 
40
        # https://bugs.launchpad.net/bzr/+bug/66857 -- nick was printed
 
41
        # urlencoded but shouldn't be
39
42
        os.mkdir('!repo')
40
43
        os.chdir('!repo')
41
 
        self.runbzr('init')
42
 
        nick = self.runbzr("nick",backtick=True)
 
44
        self.run_bzr('init')
 
45
        nick = self.run_bzr('nick')[0]
43
46
        self.assertEqual(nick, '!repo\n')