541
541
self.addCleanup(self._server.tearDown)
545
548
base_url = self._server.get_url()
546
550
# try getting the transport via the regular interface:
548
552
if not isinstance(t, self.transport_class):
549
553
# we did not get the correct transport class type. Override the
550
554
# regular connection behaviour by direct construction.