154
158
return activity_scenarios
157
def load_tests(standard_tests, module, loader):
158
"""Multiply tests for http clients and protocol versions."""
159
result = loader.suiteClass()
161
# one for each transport implementation
162
t_tests, remaining_tests = tests.split_suite_by_condition(
163
standard_tests, tests.condition_isinstance((
164
TestHttpTransportRegistration,
165
TestHttpTransportUrls,
168
multiply_tests_by_their_variations(t_tests, result)
170
# some tests are parametrized by the protocol version only
171
p_tests, remaining_tests = tests.split_suite_by_condition(
172
remaining_tests, tests.condition_isinstance((
173
TestAuthOnRedirected,
175
multiply_tests_by_their_variations(p_tests, result)
177
# each implementation tested with each HTTP version
178
tp_tests, remaining_tests = tests.split_suite_by_condition(
179
remaining_tests, tests.condition_isinstance((
180
SmartHTTPTunnellingTest,
181
TestDoCatchRedirections,
183
TestHTTPRedirections,
184
TestHTTPSilentRedirections,
185
TestLimitedRangeRequestServer,
189
TestSpecificRequestHandler,
191
multiply_tests_by_their_variations(tp_tests, result)
193
# proxy auth: each auth scheme on all http versions on all implementations.
194
tppa_tests, remaining_tests = tests.split_suite_by_condition(
195
remaining_tests, tests.condition_isinstance((
198
multiply_tests_by_their_variations(tppa_tests, result)
200
# auth: each auth scheme on all http versions on all implementations.
201
tpa_tests, remaining_tests = tests.split_suite_by_condition(
202
remaining_tests, tests.condition_isinstance((
205
multiply_tests_by_their_variations(tpa_tests, result)
207
# activity: on all http[s] versions on all implementations
208
tpact_tests, remaining_tests = tests.split_suite_by_condition(
209
remaining_tests, tests.condition_isinstance((
212
multiply_tests_by_their_variations(tpact_tests, result)
214
# No parametrization for the remaining tests
215
result.addTests(remaining_tests)
220
161
class FakeManager(object):
222
163
def __init__(self):