106
108
modules = _get_transport_modules()
107
109
permutation_count = 0
108
110
for module in modules:
109
permutation_count += len(reduce(getattr,
110
(module + ".get_test_permutations").split('.')[1:],
111
__import__(module))())
112
permutation_count += len(reduce(getattr,
113
(module + ".get_test_permutations").split('.')[1:],
114
__import__(module))())
115
except errors.DependencyNotPresent:
112
117
input_test = TestTransportProviderAdapter(
113
118
"test_adapter_sets_transport_class")
114
119
adapter = TransportTestProviderAdapter()
127
132
LocalAbspathServer,
130
from bzrlib.transport.sftp import (SFTPTransport,
133
SFTPSiblingAbsoluteServer,
136
from bzrlib.transport.sftp import (SFTPTransport,
139
SFTPSiblingAbsoluteServer,
141
except errors.ParamikoNotPresent, e:
142
warnings.warn(str(e))
135
146
from bzrlib.transport.http import (HttpTransport,
162
173
local_abspath_test = test_iter.next()
163
174
local_urlpath_test = test_iter.next()
164
175
memory_test = test_iter.next()
165
sftp_abs_test = test_iter.next()
166
sftp_homedir_test = test_iter.next()
167
sftp_sibling_abs_test = test_iter.next()
177
sftp_abs_test = test_iter.next()
178
sftp_homedir_test = test_iter.next()
179
sftp_sibling_abs_test = test_iter.next()
168
180
# ftp_test = test_iter.next()
169
181
self.assertRaises(StopIteration, test_iter.next)
170
182
self.assertEqual(LocalTransport, local_relpath_test.transport_class)
176
188
self.assertEqual(LocalTransport, local_urlpath_test.transport_class)
177
189
self.assertEqual(LocalURLServer, local_urlpath_test.transport_server)
179
self.assertEqual(SFTPTransport, sftp_abs_test.transport_class)
180
self.assertEqual(SFTPAbsoluteServer, sftp_abs_test.transport_server)
181
self.assertEqual(SFTPTransport, sftp_homedir_test.transport_class)
182
self.assertEqual(SFTPHomeDirServer, sftp_homedir_test.transport_server)
183
self.assertEqual(SFTPTransport, sftp_sibling_abs_test.transport_class)
184
self.assertEqual(SFTPSiblingAbsoluteServer,
185
sftp_sibling_abs_test.transport_server)
192
self.assertEqual(SFTPTransport, sftp_abs_test.transport_class)
193
self.assertEqual(SFTPAbsoluteServer, sftp_abs_test.transport_server)
194
self.assertEqual(SFTPTransport, sftp_homedir_test.transport_class)
195
self.assertEqual(SFTPHomeDirServer, sftp_homedir_test.transport_server)
196
self.assertEqual(SFTPTransport, sftp_sibling_abs_test.transport_class)
197
self.assertEqual(SFTPSiblingAbsoluteServer,
198
sftp_sibling_abs_test.transport_server)
187
200
self.assertEqual(HttpTransport, http_test.transport_class)
188
201
self.assertEqual(HttpServer, http_test.transport_server)