/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_smart_request.py

MergeĀ 2.1-categorize-requests-819604

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        self.assertEqual(
110
110
            [[transport]] * 3, handler._command.jail_transports_log)
111
111
 
 
112
    def test_all_registered_requests_are_safety_qualified(self):
 
113
        unclassified_requests = []
 
114
        allowed_info = ('read', 'idem', 'mutate', 'semivfs', 'semi', 'stream')
 
115
        for key in request.request_handlers.keys():
 
116
            info = request.request_handlers.get_info(key)
 
117
            if info is None or info not in allowed_info:
 
118
                unclassified_requests.append(key)
 
119
        if unclassified_requests:
 
120
            self.fail('These requests were not categorized as safe/unsafe'
 
121
                      ' to retry: %s'  % (unclassified_requests,))
112
122
 
113
123
 
114
124
class TestSmartRequestHandlerErrorTranslation(TestCase):