<s> import mock <EOL> import os <EOL> import unittest <EOL> from awsshell . app import AWSShell <EOL> from awsshell . config import Config <EOL> from awsshell . utils import build_config_file_path <EOL> class ConfigTest ( unittest . TestCase ) : <EOL> def test_config_off ( self ) : <EOL> try : <EOL> os . remove ( build_config_file_path ( '<STR_LIT>' ) ) <EOL> except OSError : <EOL> pass <EOL> self . aws_shell = AWSShell ( None , mock . Mock ( ) , mock . Mock ( ) ) <EOL> self . aws_shell . model_completer . match_fuzzy = False <EOL> self . aws_shell . enable_vi_bindings = False <EOL> self . aws_shell . show_completion_columns = False <EOL> self . aws_shell . show_help = False <EOL> self . aws_shell . theme = '<STR_LIT:none>' <EOL> self . aws_shell . save_config ( ) <EOL> self . aws_shell . load_config ( ) <EOL> assert self . aws_shell . model_completer . match_fuzzy == False <EOL> assert self . aws_shell . enable_vi_bindings == False <EOL> assert self . aws_shell . show_completion_columns == False <EOL> assert self . aws_shell . show_help == False <EOL> assert self . aws_shell . theme == '<STR_LIT:none>' <EOL> def test_config_on ( self ) : <EOL> self . aws_shell = AWSShell ( None , mock . Mock ( ) , mock . Mock ( ) ) <EOL> self . aws_shell . model_completer . match_fuzzy = True <EOL> self . aws_shell . enable_vi_bindings = True <EOL> self . aws_shell . show_completion_columns = True <EOL> self . aws_shell . show_help = True <EOL> self . aws_shell . theme = '<STR_LIT>' <EOL> self . aws_shell . save_config ( ) <EOL> self . aws_shell . load_config ( ) <EOL> assert self . aws_shell . config_section . as_bool ( '<STR_LIT>' ) == True <EOL> assert self . aws_shell . config_section . as_bool ( <EOL> '<STR_LIT>' ) == True <EOL> assert self . aws_shell . config_section . as_bool ( <EOL> '<STR_LIT>' ) == True <EOL> assert self . aws_shell . config_section . as_bool ( '<STR_LIT>' ) == True <EOL> assert self . aws_shell . config_section [ '<STR_LIT>' ] == '<STR_LIT>' </s>
