def test_cache_create(self): self.assertIsNone(self.plot._cache) cache = self.plot.cache self.assertIsInstance(cache, WeakValueDictionary) self.assertEqual(cache, {})