~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/teststatus.py

  • Committer: Martin Pool
  • Date: 2005-07-17 18:26:45 UTC
  • Revision ID: mbp@sourcefrog.net-20050717182642-9116d11beacc6bc5
- oops, set() is much faster than intset

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from bzrlib.selftest import InTempDir
25
25
 
26
26
class BranchStatus(InTempDir):
27
 
    
28
 
    def test_branch_status(self): 
 
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