def test_multiple_calls(self): # SETUP expected_report = """\ create_line 1 2 100 200 create_rectangle 5 10 500 1000""" # EXEC canvas = Canvas() canvas.create_line(1, 2, 100, 200) canvas.create_rectangle(5, 10, 500, 1000) report = canvas.report # VERIFY self.assertEqual(expected_report.splitlines(), report)