(self)
| 22 | class ConfigTest(unittest.TestCase): |
| 23 | |
| 24 | def test_config_off(self): |
| 25 | try: |
| 26 | os.remove(build_config_file_path('test-awsshellrc')) |
| 27 | except OSError: |
| 28 | pass |
| 29 | self.aws_shell = AWSShell(None, mock.Mock(), mock.Mock()) |
| 30 | self.aws_shell.model_completer.match_fuzzy = False |
| 31 | self.aws_shell.enable_vi_bindings = False |
| 32 | self.aws_shell.show_completion_columns = False |
| 33 | self.aws_shell.show_help = False |
| 34 | self.aws_shell.theme = 'none' |
| 35 | self.aws_shell.save_config() |
| 36 | self.aws_shell.load_config() |
| 37 | assert self.aws_shell.model_completer.match_fuzzy == False |
| 38 | assert self.aws_shell.enable_vi_bindings == False |
| 39 | assert self.aws_shell.show_completion_columns == False |
| 40 | assert self.aws_shell.show_help == False |
| 41 | assert self.aws_shell.theme == 'none' |
| 42 | |
| 43 | def test_config_on(self): |
| 44 | self.aws_shell = AWSShell(None, mock.Mock(), mock.Mock()) |
nothing calls this directly
no test coverage detected