~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

  • Committer: Robert Collins
  • Date: 2005-10-05 05:29:27 UTC
  • mfrom: (1393.1.51)
  • Revision ID: robertc@robertcollins.net-20051005052926-03d3a49e1dbcb670
mergeĀ fromĀ martin

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
"""Black-box tests for bzr.
20
20
 
21
21
These check that it behaves properly when it's invoked through the regular
22
 
command-line interface.
 
22
command-line interface. This doesn't actually run a new interpreter but 
 
23
rather starts again from the run_bzr function.
23
24
"""
24
25
 
 
26
 
25
27
from cStringIO import StringIO
26
28
import os
27
29
import shutil
187
189
        self.run_bzr_captured(['mv', 'a', 'c', 'subdir'])
188
190
        self.run_bzr_captured(['mv', 'subdir/a', 'subdir/newa'])
189
191
 
190
 
 
191
192
    def test_main_version(self):
192
193
        """Check output from version command and master option is reasonable"""
193
194
        # output is intentionally passed through to stdout so that we
404
405
                                         retcode=1)
405
406
        self.assertEquals(out, '')
406
407
        err.index('unknown command')
407
 
        
 
408
 
408
409
 
409
410
def listdir_sorted(dir):
410
411
    L = os.listdir(dir)