Skip to content

Commit 58bde1f

Browse files
committed
Test function names elaboration
1 parent 27f8a9b commit 58bde1f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/test_flyweight.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,18 @@ def test_instances_shall_reference_same_object(self):
1212
self.assertEqual(c1, c2)
1313
self.assertEqual(id(c1), id(c2))
1414

15-
def test_instances_with_different_suit_shall_reference_different_objects(self):
15+
def test_instances_with_different_suit(self):
16+
"""
17+
shall reference different objects
18+
"""
1619
c1 = Card('9', 'a')
1720
c2 = Card('9', 'b')
1821
self.assertNotEqual(id(c1), id(c2))
1922

20-
def test_instances_with_different_values_shall_reference_different_objects(self):
23+
def test_instances_with_different_values(self):
24+
"""
25+
shall reference different objects
26+
"""
2127
c1 = Card('9', 'h')
2228
c2 = Card('A', 'h')
2329
self.assertNotEqual(id(c1), id(c2))

0 commit comments

Comments
 (0)