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

@raises(FileNotFound)
def test_load_torrent_not_found(self):

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