/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: Andrew Bennetts
  • Date: 2007-12-05 23:30:57 UTC
  • mto: This revision was merged to the branch mainline in revision 3320.
  • Revision ID: andrew.bennetts@canonical.com-20071205233057-jax12zpmd89n57ue
Improve test coverage by making SmartTCPServer_for_testing by default create a server that does not serve the backing transport's root at its own root.  This mirrors the way most HTTP smart servers are configured.

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
        self.assertEqual(True, t.has_any(['b', 'b', 'b']))
170
170
 
171
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 /.")
172
177
        current_transport = self.get_transport()
173
178
        self.assertTrue(current_transport.has('/'))
174
179
        root = current_transport.clone('/')