~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 13:48:32 UTC
  • mfrom: (1185.3.4)
  • mto: (1185.1.16)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: abentley@panoramicfeedback.com-20050912134832-c23db11dc63170b6
Merged from mpool

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):
27
 
    def runTest(self): 
 
26
class BranchStatus(TestCaseInTempDir):
 
27
    
 
28
    def test_branch_status(self): 
28
29
        """Basic 'bzr mkdir' operation"""
29
30
        from cStringIO import StringIO
30
31
        from bzrlib.status import show_status
39
40
 
40
41
        tof = StringIO()
41
42
        self.build_tree(['hello.c', 'bye.c'])
 
43
        b.add_pending_merge('pending@pending-0-0')
42
44
        show_status(b, to_file=tof)
43
45
        tof.seek(0)
44
46
        self.assertEquals(tof.readlines(),
45
47
                          ['unknown:\n',
46
48
                           '  bye.c\n',
47
49
                           '  hello.c\n',
 
50
                           'pending merges:\n',
 
51
                           '  pending@pending-0-0\n'
48
52
                           ])
49
53