~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/teststatus.py

  • Committer: Aaron Bentley
  • Date: 2005-09-12 02:53:07 UTC
  • mto: (1185.3.4)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: aaron.bentley@utoronto.ca-20050912025307-8c21544e8db1cbdb
added all_descendants and node_distances, exception when root doesn't exist

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
"""
22
22
 
23
23
 
24
 
from bzrlib.selftest import InTempDir
 
24
from bzrlib.selftest import TestCaseInTempDir
25
25
 
26
 
class BranchStatus(InTempDir):
 
26
class BranchStatus(TestCaseInTempDir):
27
27
    
28
28
    def test_branch_status(self): 
29
29
        """Basic 'bzr mkdir' operation"""
40
40
 
41
41
        tof = StringIO()
42
42
        self.build_tree(['hello.c', 'bye.c'])
 
43
        b.add_pending_merge('pending@pending-0-0')
43
44
        show_status(b, to_file=tof)
44
45
        tof.seek(0)
45
46
        self.assertEquals(tof.readlines(),
46
47
                          ['unknown:\n',
47
48
                           '  bye.c\n',
48
49
                           '  hello.c\n',
 
50
                           'pending merges:\n',
 
51
                           '  pending@pending-0-0\n'
49
52
                           ])
50
53