~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/teststatus.py

  • Committer: Aaron Bentley
  • Date: 2005-07-26 15:25:58 UTC
  • mto: (1092.1.41) (1185.3.4) (974.1.47)
  • mto: This revision was merged to the branch mainline in revision 1020.
  • Revision ID: abentley@panoramicfeedback.com-20050726152558-c47bb2bd0163e1a8
Replaced popen with subprocess in patch..py

Show diffs side-by-side

added added

removed removed

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