@@ -0,0 +1,1309 @@
+import unittest%0Afrom pymatgen.util.decorators import lru_cache%0A%0A%0Aclass TestLRUCache(unittest.TestCase):%0A    def test_function(self):%0A        @lru_cache(2)%0A        def cached_func(a, b):%0A            return a + b%0A%0A        #call a few times to get some stats%0A        self.assertEqual(cached_func(1, 2), 3)%0A        self.assertEqual(cached_func(3, 2), 5)%0A        self.assertEqual(cached_func(3, 2), 5)%0A        self.assertEqual(cached_func(1, 2), 3)%0A        self.assertEqual(cached_func(4, 2), 6)%0A        self.assertEqual(cached_func(4, 2), 6)%0A        self.assertEqual(cached_func(3, 2), 5)%0A        self.assertEqual(cached_func(1, 2), 3)%0A%0A        self.assertEqual(cached_func.cache_info().hits, 3)%0A        self.assertEqual(cached_func.cache_info().misses, 5)%0A%0A    def test_class_method(self):%0A        class TestClass():%0A            @lru_cache(10)%0A            def cached_func(self, x):%0A                return x%0A%0A        a = TestClass()%0A        b = TestClass()%0A%0A        self.assertEqual(a.cached_func(1), 1)%0A        self.assertEqual(b.cached_func(2), 2)%0A        self.assertEqual(b.cached_func(3), 3)%0A        self.assertEqual(a.cached_func(3), 3)%0A        self.assertEqual(a.cached_func(1), 1)%0A%0A        self.assertEqual(a.cached_func.cache_info().hits, 1)%0A        self.assertEqual(a.cached_func.cache_info().misses, 4)%0A

add missing unit tests for previous commit