'Testing whether a FileNotFound exception is raised when metadata cannot be found'

@raises(FileNotFound)
def test_load_metadata_not_found(self):

    self.handler.session = MockObject()
    self.handler.session.lm = MockObject()
    self.handler.session.lm.metadata_store = MockObject()
    self.handler.session.lm.metadata_store.get = (lambda _: None)
    self.handler._load_metadata('abc')
