@@ -1436,11 +1436,11 @@ def test_pseudo_raw_input_tty_rawinput_false(capsys):
14361436#
14371437# the only way to make this testable is to mock the builtin input()
14381438# function
1439- def piped_input_rawinput_true (capsys , echo , command ):
1439+ def piped_rawinput_true (capsys , echo , command ):
14401440 m = mock .Mock (name = 'input' , side_effect = [command , 'quit' ])
14411441 sm .input = m
14421442
1443- # run the cmdloop, which should pull input from our mocked input_list
1443+ # run the cmdloop, which should pull input from our mocked input
14441444 app = cmd2 .Cmd ()
14451445 app .use_rawinput = True
14461446 app .echo = echo
@@ -1449,16 +1449,16 @@ def piped_input_rawinput_true(capsys, echo, command):
14491449 out , err = capsys .readouterr ()
14501450 return (app , out )
14511451
1452- def test_piped_input_rawinput_true_echo_true (capsys ):
1452+ def test_pseudo_raw_input_piped_rawinput_true_echo_true (capsys ):
14531453 command = 'set'
1454- app , out = piped_input_rawinput_true (capsys , True , command )
1454+ app , out = piped_rawinput_true (capsys , True , command )
14551455 out = out .splitlines ()
14561456 assert out [0 ] == '{}{}' .format (app .prompt , command )
14571457 assert out [1 ] == 'abbrev: False'
14581458
1459- def test_piped_input_rawinput_true_echo_false (capsys ):
1459+ def test_pseudo_raw_input_piped_rawinput_true_echo_false (capsys ):
14601460 command = 'set'
1461- app , out = piped_input_rawinput_true (capsys , False , command )
1461+ app , out = piped_rawinput_true (capsys , False , command )
14621462 firstline = out .splitlines ()[0 ]
14631463 assert firstline == 'abbrev: False'
14641464 assert not '{}{}' .format (app .prompt , command ) in out
@@ -1468,11 +1468,11 @@ def test_piped_input_rawinput_true_echo_false(capsys):
14681468#
14691469# the only way to make this testable is to pass a file handle
14701470# as stdin
1471- def piped_input_rawinput_false (capsys , echo , command ):
1471+ def piped_rawinput_false (capsys , echo , command ):
14721472 # mock up the input
14731473 fakein = io .StringIO (u'{}' .format (command ))
14741474
1475- # run the cmdloop, which should pull input from stdin
1475+ # run the cmdloop, telling it where to get input from
14761476 app = cmd2 .Cmd (stdin = fakein )
14771477 app .use_rawinput = False
14781478 app .echo = echo
@@ -1481,16 +1481,16 @@ def piped_input_rawinput_false(capsys, echo, command):
14811481 out , err = capsys .readouterr ()
14821482 return (app , out )
14831483
1484- def test_piped_input_rawinput_false_echo_true (capsys ):
1484+ def test_pseudo_raw_input_piped_rawinput_false_echo_true (capsys ):
14851485 command = 'set'
1486- app , out = piped_input_rawinput_false (capsys , True , command )
1486+ app , out = piped_rawinput_false (capsys , True , command )
14871487 out = out .splitlines ()
14881488 assert out [0 ] == '{}{}' .format (app .prompt , command )
14891489 assert out [1 ] == 'abbrev: False'
14901490
1491- def test_piped_input_rawinput_false_echo_false (capsys ):
1491+ def test_pseudo_raw_input_piped_rawinput_false_echo_false (capsys ):
14921492 command = 'set'
1493- app , out = piped_input_rawinput_false (capsys , False , command )
1493+ app , out = piped_rawinput_false (capsys , False , command )
14941494 firstline = out .splitlines ()[0 ]
14951495 assert firstline == 'abbrev: False'
14961496 assert not '{}{}' .format (app .prompt , command ) in out
0 commit comments