~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ftp_transport.py

  • Committer: John Arbash Meinel
  • Date: 2007-04-12 21:18:29 UTC
  • mto: This revision was merged to the branch mainline in revision 2415.
  • Revision ID: john@arbash-meinel.com-20070412211829-dduwktk8in0e6zpl
Clean up test ordering

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
import bzrlib.transport
19
19
 
20
20
 
21
 
class TestCaseAFTP(tests.TestCaseWithTransport):
22
 
    """Test aftp transport."""
23
 
 
24
 
    def test_aftp_degrade(self):
25
 
        t = bzrlib.transport.get_transport('aftp://host/path')
26
 
        self.failUnless(t.is_active)
27
 
        parent = t.clone('..')
28
 
        self.failUnless(parent.is_active)
29
 
 
30
 
        self.assertEqual('aftp://host/path', t.abspath(''))
31
 
 
32
 
 
33
21
class _MedusaFeature(tests.Feature):
34
22
    """Some tests want an FTP Server, check if one is available.
35
23
 
62
50
 
63
51
 
64
52
 
 
53
class TestCaseAFTP(tests.TestCaseWithTransport):
 
54
    """Test aftp transport."""
 
55
 
 
56
    def test_aftp_degrade(self):
 
57
        t = bzrlib.transport.get_transport('aftp://host/path')
 
58
        self.failUnless(t.is_active)
 
59
        parent = t.clone('..')
 
60
        self.failUnless(parent.is_active)
 
61
 
 
62
        self.assertEqual('aftp://host/path', t.abspath(''))
 
63
 
 
64
 
65
65
class TestFTPServer(TestCaseWithFTPServer):
66
66
 
67
67
    def test_basic_exists(self):