We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4db3fb commit 817b8a6Copy full SHA for 817b8a6
tests/test_lazy.py
@@ -13,8 +13,15 @@ def test_innate_properties(self):
13
self.assertDictEqual({'name': 'John', 'occupation': 'Coder'},
14
self.John.__dict__)
15
16
+ def test_relatives_not_in_properties(self):
17
+ self.assertNotIn('relatives', self.John.__dict__)
18
+
19
def test_extended_properties(self):
20
print("Jhon's relatives: {0}".format(self.John.relatives))
21
self.assertDictEqual({'name': 'John', 'occupation': 'Coder',
22
'relatives': 'Many relatives.'},
23
24
25
+ def test_relatives_after_access(self):
26
+ print("Jhon's relatives: {0}".format(self.John.relatives))
27
+ self.assertIn('relatives', self.John.__dict__)
0 commit comments