~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

  • Committer: Martin Pool
  • Date: 2005-08-30 01:44:02 UTC
  • Revision ID: mbp@sourcefrog.net-20050830014401-028847129b413b22
- remove dead code from blackbox tests (pychecker)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
from bzrlib.selftest import TestCaseInTempDir, BzrTestBase
31
31
 
32
32
class ExternalBase(TestCaseInTempDir):
33
 
 
34
33
    def runbzr(self, args, retcode=0,backtick=False):
35
 
        try:
36
 
            import shutil
37
 
            from subprocess import call
38
 
        except ImportError, e:
39
 
            _need_subprocess()
40
 
            raise
41
 
 
42
34
        if isinstance(args, basestring):
43
35
            args = args.split()
44
36
 
49
41
            return self.runcmd(['python', self.BZRPATH,] + args,
50
42
                           retcode=retcode)
51
43
 
 
44
 
52
45
class TestCommands(ExternalBase):
53
46
 
54
47
    def test_help_commands(self):
59
52
        self.runbzr('commit -h')
60
53
 
61
54
    def test_init_branch(self):
62
 
        import os
63
55
        self.runbzr(['init'])
64
56
 
65
57
    def test_whoami(self):
198
190
 
199
191
    def test_merge(self):
200
192
        from bzrlib.branch import Branch
201
 
        from bzrlib.commands import run_bzr
202
193
        import os
203
194
        
204
195
        os.mkdir('a')