~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_selftest.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-12-03 00:17:53 UTC
  • mfrom: (4852.2.1 bzr-fix-publishing)
  • Revision ID: pqm@pqm.ubuntu.com-20091203001753-rrgwdoyxoojmn504
(David Roberts) Doc: delete unnecessary push of a checkout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    )
24
24
from bzrlib.errors import ParamikoNotPresent
25
25
from bzrlib.tests import (
26
 
                          features,
 
26
                          SubUnitFeature,
27
27
                          TestCase,
28
28
                          TestCaseInTempDir,
29
29
                          TestSkipped,
78
78
    def test_transport_set_to_sftp(self):
79
79
        # Test that we can pass a transport to the selftest core - sftp
80
80
        # version.
81
 
        self.requireFeature(features.paramiko)
 
81
        try:
 
82
            import bzrlib.transport.sftp
 
83
        except ParamikoNotPresent:
 
84
            raise TestSkipped("Paramiko not present")
82
85
        params = self.get_params_passed_to_core('selftest --transport=sftp')
83
86
        self.assertEqual(bzrlib.transport.sftp.SFTPAbsoluteServer,
84
87
            params[1]["transport"])
113
116
        self.assertEqual(['foo', 'bar'], params[1]['starting_with'])
114
117
 
115
118
    def test_subunit(self):
116
 
        self.requireFeature(features.subunit)
 
119
        self.requireFeature(SubUnitFeature)
117
120
        params = self.get_params_passed_to_core('selftest --subunit')
118
121
        self.assertEqual(tests.SubUnitBzrRunner, params[1]['runner_class'])
119
122