~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: Andrew Bennetts
  • Date: 2008-04-07 08:20:13 UTC
  • mfrom: (3340 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3344.
  • Revision ID: andrew.bennetts@canonical.com-20080407082013-ca1n1tqqon7ugxiy
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
                           FileExists,
39
39
                           InvalidURL,
40
40
                           LockError,
41
 
                           NoSmartServer,
42
41
                           NoSuchFile,
43
42
                           NotLocalUrl,
44
43
                           PathError,
170
169
        self.assertEqual(True, t.has_any(['b', 'b', 'b']))
171
170
 
172
171
    def test_has_root_works(self):
 
172
        from bzrlib.smart import server
 
173
        if self.transport_server is server.SmartTCPServer_for_testing:
 
174
            raise TestNotApplicable(
 
175
                "SmartTCPServer_for_testing intentionally does not allow "
 
176
                "access to /.")
173
177
        current_transport = self.get_transport()
174
178
        self.assertTrue(current_transport.has('/'))
175
179
        root = current_transport.clone('/')