#NEWLINE# def test_exit_dot_command_exits_shell( ) : #NEWLINE# #INDENT# mock_prompter = mock . Mock ( ) #NEWLINE# fake_document = mock . Mock ( ) #NEWLINE# fake_document . text = '.quit' #NEWLINE# mock_prompter . run . return_value = fake_document #NEWLINE# shell = app . AWSShell ( mock . Mock ( ) , mock . Mock ( ) , mock . Mock ( ) ) #NEWLINE# shell . create_cli_interface = mock . Mock ( return_value = mock_prompter ) #NEWLINE# shell . run ( ) #NEWLINE# assert ( fake_document . run . call_count == 1 )