~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2006-05-17 04:16:35 UTC
  • mfrom: (1708 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1710.
  • Revision ID: mbp@sourcefrog.net-20060517041635-bddf9ea599d8240e
(merge) bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
460
460
       ), out)
461
461
        self.assertEqual('', err)
462
462
 
 
463
    def test_info_standalone_no_tree(self):
 
464
        # create standalone branch without a working tree
 
465
        branch = self.make_branch('branch')
 
466
        repo = branch.repository
 
467
        out, err = self.runbzr('info branch')
 
468
        self.assertEqualDiff(
 
469
"""Location:
 
470
  branch root: %s
 
471
 
 
472
Format:
 
473
       control: Meta directory format 1
 
474
        branch: Branch format 5
 
475
    repository: %s
 
476
 
 
477
Branch history:
 
478
         0 revisions
 
479
 
 
480
Revision store:
 
481
         0 revisions
 
482
         0 KiB
 
483
""" % (branch.bzrdir.root_transport.base,
 
484
       repo._format.get_format_description(),
 
485
       ), out)
 
486
        self.assertEqual('', err)
 
487
 
463
488
    def test_info_shared_repository(self):
464
489
        old_format = bzrlib.bzrdir.BzrDirFormat.get_default_format()
465
490
        bzrlib.bzrdir.BzrDirFormat.set_default_format(bzrlib.bzrdir.BzrDirMetaFormat1())