~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

  • Committer: Aaron Bentley
  • Date: 2005-10-06 00:03:07 UTC
  • mfrom: (1393.1.52)
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1419.
  • Revision ID: aaron.bentley@utoronto.ca-20051006000306-4cbdf6e3c7038358
merged latest from mpool

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
441
438
                                         retcode=1)
442
439
        self.assertEquals(out, '')
443
440
        err.index('unknown command')
444
 
        
 
441
 
445
442
 
446
443
def listdir_sorted(dir):
447
444
    L = os.listdir(dir)