def test_read_cached_object(self, mock_load, mock_index): cache = Cache('test') cache._read_cached_object('cached_object') self.assertTrue(mock_load.called)