~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2007-06-26 08:02:36 UTC
  • mto: This revision was merged to the branch mainline in revision 2555.
  • Revision ID: mbp@sourcefrog.net-20070626080236-14ihgomtffc9tezj
Cleanup old variations on run_bzr in the test suite

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_captured(['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_captured(['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_captured(['nick'])[0]
43
46
        self.assertEqual(nick, '!repo\n')