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

(mbp) clients reconnect if they get ConnectionReset while trying to send an
 RPC (bug 819604) (Bazaar Developers)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2408
2408
        """All registered request_handlers can be found."""
2409
2409
        # If there's a typo in a register_lazy call, this loop will fail with
2410
2410
        # an AttributeError.
2411
 
        for key, item in smart_req.request_handlers.iteritems():
2412
 
            pass
 
2411
        for key in smart_req.request_handlers.keys():
 
2412
            try:
 
2413
                item = smart_req.request_handlers.get(key)
 
2414
            except AttributeError, e:
 
2415
                raise AttributeError('failed to get %s: %s' % (key, e))
2413
2416
 
2414
2417
    def assertHandlerEqual(self, verb, handler):
2415
2418
        self.assertEqual(smart_req.request_handlers.get(verb), handler)