web: missed a IndexError-to-KeyError conversion

This commit is contained in:
Brian Warner 2007-07-06 19:43:03 -07:00
parent 71c04fc2e7
commit 21e12f383d

View File

@ -419,7 +419,7 @@ class SystemTest(testutil.SignalMixin, unittest.TestCase):
d1.addBoth(self.shouldFail, NotMutableError, "set_uri(nope)")
d1.addCallback(lambda res: dirnode.get("missing"))
d1.addBoth(self.shouldFail, IndexError, "get(missing)",
d1.addBoth(self.shouldFail, KeyError, "get(missing)",
"unable to find child named 'missing'")
d1.addCallback(self.log, "doing move_child_to(ro)")