From 4c31f0f854130d49e6f5004f489c3363ad4d2d33 Mon Sep 17 00:00:00 2001 From: Tin Tvrtkovic Date: Wed, 28 May 2014 21:46:51 +0200 Subject: [PATCH] Just a little more coverage. --- tests/test_cached_property.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_cached_property.py b/tests/test_cached_property.py index e836386..d39778a 100755 --- a/tests/test_cached_property.py +++ b/tests/test_cached_property.py @@ -44,6 +44,10 @@ class TestCachedProperty(unittest.TestCase): self.assertEqual(c.add_cached, 1) self.assertEqual(c.add_cached, 1) + # It's customary for descriptors to return themselves if accessed + # though the class, rather than through an instance. + self.assertTrue(isinstance(Check.add_cached, cached_property)) + def test_reset_cached_property(self): class Check(object): -- 2.30.2