Skip to content

Commit 817b8a6

Browse files
committed
Test suite extension
1 parent a4db3fb commit 817b8a6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_lazy.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,15 @@ def test_innate_properties(self):
1313
self.assertDictEqual({'name': 'John', 'occupation': 'Coder'},
1414
self.John.__dict__)
1515

16+
def test_relatives_not_in_properties(self):
17+
self.assertNotIn('relatives', self.John.__dict__)
18+
1619
def test_extended_properties(self):
1720
print("Jhon's relatives: {0}".format(self.John.relatives))
1821
self.assertDictEqual({'name': 'John', 'occupation': 'Coder',
1922
'relatives': 'Many relatives.'},
2023
self.John.__dict__)
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

Comments
 (0)