@@ -1364,26 +1364,33 @@ def test_move_left(self):
1364
1364
self .mock_win .reset_mock ()
1365
1365
self .textbox .do_command (curses .KEY_LEFT )
1366
1366
self .mock_win .move .assert_called_with (1 , 0 )
1367
+ self .mock_win .reset_mock ()
1368
+
1369
+ def test_move_right (self ):
1370
+ """Test moving the cursor right."""
1371
+ self .mock_win .reset_mock ()
1367
1372
self .textbox .do_command (curses .KEY_RIGHT )
1368
1373
self .mock_win .move .assert_called_with (1 , 2 )
1369
1374
self .mock_win .reset_mock ()
1370
1375
1371
- def test_move_left (self ):
1372
- """Test moving the cursor left."""
1376
+ def test_move_left_and_right (self ):
1377
+ """Test moving the cursor left and then right ."""
1373
1378
self .mock_win .reset_mock ()
1379
+ self .textbox .do_command (curses .KEY_LEFT )
1380
+ self .mock_win .move .assert_called_with (1 , 0 )
1374
1381
self .textbox .do_command (curses .KEY_RIGHT )
1375
1382
self .mock_win .move .assert_called_with (1 , 2 )
1376
1383
self .mock_win .reset_mock ()
1377
1384
1378
1385
def test_move_up (self ):
1379
- """Test moving the cursor left ."""
1386
+ """Test moving the cursor up ."""
1380
1387
self .mock_win .reset_mock ()
1381
1388
self .textbox .do_command (curses .KEY_UP )
1382
1389
self .mock_win .move .assert_called_with (0 , 1 )
1383
1390
self .mock_win .reset_mock ()
1384
1391
1385
1392
def test_move_down (self ):
1386
- """Test moving the cursor left ."""
1393
+ """Test moving the cursor down ."""
1387
1394
self .mock_win .reset_mock ()
1388
1395
self .textbox .do_command (curses .KEY_DOWN )
1389
1396
self .mock_win .move .assert_called_with (2 , 1 )
0 commit comments