~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

  • Committer: Martin Pool
  • Date: 2005-10-05 01:46:57 UTC
  • mto: (1185.13.3)
  • mto: This revision was merged to the branch mainline in revision 1403.
  • Revision ID: mbp@sourcefrog.net-20051005014657-65885b3ee32ec90c
doc

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.
23
 
 
24
 
This always reinvokes bzr through a new Python interpreter, which is a
25
 
bit inefficient but arguably tests in a way more representative of how
26
 
it's normally invoked.
 
22
command-line interface.  This doesn't actually run a new interpreter but 
 
23
rather starts again from the run_bzr function.
27
24
"""
28
25
 
 
26
 
29
27
from cStringIO import StringIO
30
28
import os
31
29
import shutil
190
188
        self.run_bzr_captured(['mv', 'a', 'c', 'subdir'])
191
189
        self.run_bzr_captured(['mv', 'subdir/a', 'subdir/newa'])
192
190
 
193
 
 
194
191
    def test_main_version(self):
195
192
        """Check output from version command and master option is reasonable"""
196
193
        # output is intentionally passed through to stdout so that we
407
404
                                         retcode=1)
408
405
        self.assertEquals(out, '')
409
406
        err.index('unknown command')
410
 
        
 
407
 
411
408
 
412
409
def listdir_sorted(dir):
413
410
    L = os.listdir(dir)