~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

  • Committer: Martin Pool
  • Date: 2005-06-21 08:35:05 UTC
  • Revision ID: mbp@sourcefrog.net-20050621083505-79259fb5ed842e4f
- move more code to run external commands from testbzr to selftest

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
 
42
42
 
 
43
class HelpCommands(TestBase):
 
44
    def runTest(self):
 
45
        self.runcmd('bzr --help')
 
46
        self.runcmd('bzr help')
 
47
        self.runcmd('bzr help commands')
 
48
        self.runcmd('bzr help help')
 
49
        self.runcmd('bzr commit -h')
 
50
 
 
51
 
43
52
class InTempBranch(TestBase):
44
53
    """Base class for tests run in a temporary branch."""
45
54
    def setUp(self):
71
80
    from unittest import TestSuite
72
81
    s = TestSuite()
73
82
    s.addTests([TestVersion(),
74
 
                InitBranch()])
 
83
                InitBranch(),
 
84
                HelpCommands()])
75
85
    return s