~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2006-04-13 08:57:24 UTC
  • mto: This revision was merged to the branch mainline in revision 1660.
  • Revision ID: robertc@robertcollins.net-20060413085724-c7a3bdbaed2f8bc8
Teach `bzr init` how to init at the root of a repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
 
53
53
class TestCommands(ExternalBase):
54
54
 
55
 
    def test_init_branch(self):
56
 
        self.runbzr(['init'])
57
 
 
58
 
        # Can it handle subdirectories as well?
59
 
        self.runbzr('init subdir1')
60
 
        self.assert_(os.path.exists('subdir1'))
61
 
        self.assert_(os.path.exists('subdir1/.bzr'))
62
 
 
63
 
        self.runbzr('init subdir2/nothere', retcode=3)
64
 
        
65
 
        os.mkdir('subdir2')
66
 
        self.runbzr('init subdir2')
67
 
        self.runbzr('init subdir2', retcode=3)
68
 
 
69
 
        self.runbzr('init subdir2/subsubdir1')
70
 
        self.assert_(os.path.exists('subdir2/subsubdir1/.bzr'))
71
 
 
72
55
    def test_whoami(self):
73
56
        # this should always identify something, if only "john@localhost"
74
57
        self.runbzr("whoami")