From: Tin Tvrtkovic Date: Wed, 28 May 2014 19:46:51 +0000 (+0200) Subject: Just a little more coverage. X-Git-Tag: 1.0.0~11^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c31f0f854130d49e6f5004f489c3363ad4d2d33;p=cached-property.git Just a little more coverage. --- 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):