<s> """<STR_LIT>""" <EOL> from __future__ import unicode_literals , print_function <EOL> import builtins <EOL> from unittest . mock import patch <EOL> import nose <EOL> from nose . tools import assert_true , assert_false <EOL> import xonsh . main <EOL> from tools import mock_xonsh_env <EOL> def test_login_shell ( ) : <EOL> def Shell ( * args , ** kwargs ) : <EOL> pass <EOL> with patch ( '<STR_LIT>' , Shell ) , mock_xonsh_env ( { } ) : <EOL> xonsh . main . premain ( [ ] ) <EOL> assert_true ( builtins . __xonsh_env__ . get ( '<STR_LIT>' ) ) <EOL> with patch ( '<STR_LIT>' , Shell ) , mock_xonsh_env ( { } ) : <EOL> xonsh . main . premain ( [ '<STR_LIT>' , '<STR_LIT:-c>' , '<STR_LIT>' ] ) <EOL> assert_true ( builtins . __xonsh_env__ . get ( '<STR_LIT>' ) ) <EOL> with patch ( '<STR_LIT>' , Shell ) , mock_xonsh_env ( { } ) : <EOL> xonsh . main . premain ( [ '<STR_LIT:-c>' , '<STR_LIT>' ] ) <EOL> assert_false ( builtins . __xonsh_env__ . get ( '<STR_LIT>' ) ) <EOL> with patch ( '<STR_LIT>' , Shell ) , mock_xonsh_env ( { } ) : <EOL> xonsh . main . premain ( [ '<STR_LIT>' ] ) <EOL> assert_true ( builtins . __xonsh_env__ . get ( '<STR_LIT>' ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> nose . runmodule ( ) </s>
