@mock.patch('tethys_apps.cli.cli_colors.pretty_output')
@mock.patch('builtins.input', side_effect=['y'])
@mock.patch('tethys_apps.cli.install_commands.call')
@mock.patch('tethys_apps.cli.install_commands.exit')
def test_install_file_generate(self, mock_exit, mock_call, _, __):
    args = mock.MagicMock(file=None, quiet=False)
    check_call = ['tethys', 'gen', 'install']
    mock_exit.side_effect = SystemExit
    self.assertRaises(SystemExit, install_commands.install_command, args)
    mock_call.assert_called_with(check_call)
    mock_exit.assert_called_with(0)
@mock.patch('tethys_apps.cli.cli_colors.pretty_output')
@mock.patch('builtins.input', side_effect=['y'])
@mock.patch('tethys_apps.cli.install_commands.call')
@mock.patch('tethys_apps.cli.install_commands.exit')
def test_install_file_generate(self, mock_exit, mock_call, _, __):
    args = mock.MagicMock(file=None, quiet=False)
    check_call = ['tethys', 'gen', 'install']
    mock_exit.side_effect = SystemExit
    self.assertRaises(SystemExit, install_commands.install_command, args)
    mock_call.assert_called_with(check_call)
    mock_exit.assert_called_with(0)