~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2007-06-26 13:49:44 UTC
  • mto: (2581.1.1 cleanup-runbzr)
  • mto: This revision was merged to the branch mainline in revision 2588.
  • Revision ID: v.ladeuil+lp@free.fr-20070626134944-snlh5i0zsa30mysx
Enforce run_bzr(string) where possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        os.mkdir('me.dev')
30
30
        os.chdir('me.dev')
31
31
        self.run_bzr('init')
32
 
        nick = self.run_bzr(['nick'])[0]
 
32
        nick = self.run_bzr('nick')[0]
33
33
        self.assertEqual(nick, 'me.dev\n')
34
34
        # set the nickname
35
35
        self.run_bzr("nick moo")
36
 
        nick = self.run_bzr(['nick'])[0]
 
36
        nick = self.run_bzr('nick')[0]
37
37
        self.assertEqual(nick, 'moo\n')
38
38
 
39
39
    def test_autonick_urlencoded(self):
42
42
        os.mkdir('!repo')
43
43
        os.chdir('!repo')
44
44
        self.run_bzr('init')
45
 
        nick = self.run_bzr(['nick'])[0]
 
45
        nick = self.run_bzr('nick')[0]
46
46
        self.assertEqual(nick, '!repo\n')