~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Vincent Ladeuil
  • Date: 2007-12-24 13:29:30 UTC
  • mto: (3146.3.1 179368) (3156.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 3158.
  • Revision ID: v.ladeuil+lp@free.fr-20071224132930-on2606aabyvv5mjj
Cleanups.

* bzrlib/tests/test_http.py:
(load_tests): Make it clearer that we are using test classes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
    is_also_testing_for_authentication = tests.condition_isinstance(tpa_classes)
140
140
 
141
141
    result = loader.suiteClass()
142
 
    for test in tests.iter_suite_tests(standard_tests):
 
142
    for test_class in tests.iter_suite_tests(standard_tests):
143
143
        # Each test class is either standalone or testing for some combination
144
144
        # of transport, protocol version, authentication scheme. Use the right
145
145
        # adpater (or none) depending on the class.
146
 
        if is_testing_for_transports(test):
147
 
            result.addTests(t_adapter.adapt(test))
148
 
        elif is_also_testing_for_protocols(test):
149
 
            result.addTests(tp_adapter.adapt(test))
150
 
        elif is_also_testing_for_authentication(test):
151
 
            result.addTests(tpa_adapter.adapt(test))
 
146
        if is_testing_for_transports(test_class):
 
147
            result.addTests(t_adapter.adapt(test_class))
 
148
        elif is_also_testing_for_protocols(test_class):
 
149
            result.addTests(tp_adapter.adapt(test_class))
 
150
        elif is_also_testing_for_authentication(test_class):
 
151
            result.addTests(tpa_adapter.adapt(test_class))
152
152
        else:
153
 
            result.addTest(test)
 
153
            result.addTest(test_class)
154
154
    return result
155
155
 
156
156