~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart.py

Merge the fix for bug #819604 into trunk, resolve conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1860
1860
        """All registered request_handlers can be found."""
1861
1861
        # If there's a typo in a register_lazy call, this loop will fail with
1862
1862
        # an AttributeError.
1863
 
        for key, item in smart_req.request_handlers.iteritems():
1864
 
            pass
 
1863
        for key in smart_req.request_handlers.keys():
 
1864
            try:
 
1865
                item = smart_req.request_handlers.get(key)
 
1866
            except AttributeError, e:
 
1867
                raise AttributeError('failed to get %s: %s' % (key, e))
1865
1868
 
1866
1869
    def assertHandlerEqual(self, verb, handler):
1867
1870
        self.assertEqual(smart_req.request_handlers.get(verb), handler)