~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_sftp.py

  • Committer: Carl Friedrich Bolz
  • Date: 2006-08-18 15:18:44 UTC
  • mto: (1711.2.131 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1947.
  • Revision ID: cfbolz@gmx.de-20060818151844-4f780772ff8372f1
Rename setup method to make its intent clearer. Some PEP 8 issues.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import os
2
 
from bzrlib.tests.test_sftp_transport import TestCaseWithSFTPServer
 
2
 
3
3
from bzrlib.benchmarks import Benchmark
4
4
from bzrlib import bzrdir
5
 
import bzrlib.transport
 
5
from bzrlib.tests import test_sftp_transport
 
6
from bzrlib.tests.test_sftp_transport import TestCaseWithSFTPServer
6
7
import bzrlib.transport.http
7
8
from bzrlib.workingtree import WorkingTree
8
 
from bzrlib.tests import test_sftp_transport
9
9
 
10
10
try:
11
11
    import paramiko
21
21
        super(SFTPBenchmark, self).setUp()
22
22
        if not paramiko_loaded:
23
23
            raise TestSkipped('you must have paramiko to run this test')
24
 
        test_sftp_transport.set_transport(self) 
 
24
        test_sftp_transport.set_test_transport_to_sftp(self) 
25
25
         
26
26
    def test_branch(self):
27
27
        os.mkdir("a")