def test_cache_object(self, mock_dump, mock_index): cache = Cache('test') cache._cache_object('file', 'value') self.assertTrue(mock_dump.called)