We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee5fa7a commit 6939db4Copy full SHA for 6939db4
1 file changed
test_bridge.py
@@ -25,6 +25,15 @@ def test_bridge_shall_draw_with_concrete_implementation(cls):
25
sh2.draw()
26
cls.assertEqual(mock_ci2_draw_circle.call_count, 1)
27
28
+ def test_bridge_shall_scale_with_own_implementation(cls):
29
+ ci = DrawingAPI1()
30
+ sh = CircleShape(1, 2, 3, ci)
31
+ sh.scale(2)
32
+ cls.assertEqual(sh._radius, 6)
33
+ with patch.object(sh, 'scale') as mock_sh_scale_circle:
34
35
+ cls.assertEqual(mock_sh_scale_circle.call_count, 1)
36
+
37
if __name__ == "__main__":
38
unittest.main()
39
0 commit comments