@@ -1930,21 +1930,25 @@ def _make_mock_console(self, width=80):
19301930
19311931 return console , wc
19321932
1933- def test_normal_line_not_full (self ):
1933+ def test_short_line_sets_posxy_normally (self ):
19341934 width = 10
1935+ y = 3
19351936 console , wc = self ._make_mock_console (width = width )
1937+ old_line = ""
19361938 new_line = "a" * 3
19371939 wc .WindowsConsole ._WindowsConsole__write_changed_line (
1938- console , 0 , "" , new_line , 0
1940+ console , y , old_line , new_line , 0
19391941 )
1940- self .assertEqual (console .posxy , (3 , 0 ))
1942+ self .assertEqual (console .posxy , (3 , y ))
19411943
1942- def test_exact_width_line_wrap_behavior (self ):
1944+ def test_exact_width_line_does_not_wrap (self ):
19431945 width = 10
1946+ y = 3
19441947 console , wc = self ._make_mock_console (width = width )
1948+ old_line = ""
19451949 new_line = "a" * width
19461950
19471951 wc .WindowsConsole ._WindowsConsole__write_changed_line (
1948- console , 0 , "" , new_line , 0
1952+ console , y , old_line , new_line , 0
19491953 )
1950- self .assertEqual (console .posxy , (width - 1 , 0 ))
1954+ self .assertEqual (console .posxy , (width - 1 , y ))
0 commit comments