~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2006-01-12 06:37:23 UTC
  • mfrom: (1534.1.6 integration)
  • Revision ID: mbp@sourcefrog.net-20060112063723-4ec91b5ff30f0830
[merge] robertc-integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
from bzrlib.errors import BzrCommandError
46
46
from bzrlib.osutils import has_symlinks, pathjoin
47
47
from bzrlib.tests.HTTPTestUtil import TestCaseWithWebserver
 
48
from bzrlib.tests.test_sftp_transport import TestCaseWithSFTPServer
48
49
from bzrlib.tests.blackbox import ExternalBase
49
50
 
50
51
class TestCommands(ExternalBase):
1266
1267
            progress("skipping symlink tests")
1267
1268
 
1268
1269
 
1269
 
class HttpTests(TestCaseWithWebserver):
 
1270
class RemoteTests(object):
1270
1271
    """Test bzr ui commands against remote branches."""
1271
1272
 
1272
1273
    def test_branch(self):
1294
1295
        branch.working_tree().commit('add file', rev_id='A')
1295
1296
        url = self.get_remote_url('branch/')
1296
1297
        self.run_bzr('check', url)
 
1298
    
 
1299
    
 
1300
class HTTPTests(TestCaseWithWebserver, RemoteTests):
 
1301
    """Test various commands against a HTTP server."""
 
1302
    
 
1303
    
 
1304
class SFTPTestsAbsolute(TestCaseWithSFTPServer, RemoteTests):
 
1305
    """Test various commands against a SFTP server using abs paths."""
 
1306
 
 
1307
    
 
1308
class SFTPTestsAbsoluteSibling(TestCaseWithSFTPServer, RemoteTests):
 
1309
    """Test various commands against a SFTP server using abs paths."""
 
1310
 
 
1311
    def setUp(self):
 
1312
        super(SFTPTestsAbsoluteSibling, self).setUp()
 
1313
        self._override_home = '/dev/noone/runs/tests/here'
 
1314
 
 
1315
    
 
1316
class SFTPTestsRelative(TestCaseWithSFTPServer, RemoteTests):
 
1317
    """Test various commands against a SFTP server using homedir rel paths."""
 
1318
 
 
1319
    def setUp(self):
 
1320
        super(SFTPTestsRelative, self).setUp()
 
1321
        self._get_remote_is_absolute = False