/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_shared_repository.py

  • Committer: John Arbash Meinel
  • Date: 2008-09-05 03:11:40 UTC
  • mfrom: (3691 +trunk)
  • mto: (3697.7.4 1.7)
  • mto: This revision was merged to the branch mainline in revision 3748.
  • Revision ID: john@arbash-meinel.com-20080905031140-hj0adlcf30l7i99v
Merge in bzr.dev 3691

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
    def test_make_repository(self):
28
28
        out, err = self.run_bzr("init-repository a")
 
29
        self.assertEqual(out,
 
30
"""Shared repository with trees (format: pack-0.92)
 
31
Location:
 
32
  shared repository: a
 
33
""")
 
34
        self.assertEqual(err, "")
 
35
        dir = BzrDir.open('a')
 
36
        self.assertIs(dir.open_repository().is_shared(), True)
 
37
        self.assertRaises(errors.NotBranchError, dir.open_branch)
 
38
        self.assertRaises(errors.NoWorkingTree, dir.open_workingtree)
 
39
 
 
40
    def test_make_repository_quiet(self):
 
41
        out, err = self.run_bzr("init-repository a -q")
29
42
        self.assertEqual(out, "")
30
43
        self.assertEqual(err, "")
31
44
        dir = BzrDir.open('a')
32
45
        self.assertIs(dir.open_repository().is_shared(), True)
33
46
        self.assertRaises(errors.NotBranchError, dir.open_branch)
34
 
        self.assertRaises(errors.NoWorkingTree, dir.open_workingtree)        
 
47
        self.assertRaises(errors.NoWorkingTree, dir.open_workingtree)
35
48
 
36
49
    def test_init_repo_existing_dir(self):
37
50
        """Make repo in existing directory.