
Currently the MockKeyManager raises KeyError when a key is not found for a get() or delete() but a real key manager raises ManagedObjectNotFoundError in the case of not found [1][2]. This updates the MockKeyManager to raise the same exception as a real key manager so that projects using it in tests will be able to test their handling of "not found" scenarios properly. [1]a662b30764/castellan/key_manager/barbican_key_manager.py (L617)
[2]a662b30764/castellan/key_manager/barbican_key_manager.py (L644)
Change-Id: I3184a229f6690854dda1edc12e74bb483b47a057