()
| 93 | |
| 94 | |
| 95 | def test_profile_command_changes_profile(): |
| 96 | shell = mock.Mock(spec=app.AWSShell) |
| 97 | shell.profile = 'myprofile' |
| 98 | stdout = compat.StringIO() |
| 99 | handler = app.ProfileHandler(stdout) |
| 100 | |
| 101 | handler.run(['.profile', 'newprofile'], shell) |
| 102 | |
| 103 | assert shell.profile == 'newprofile' |
| 104 | |
| 105 | |
| 106 | def test_profile_prints_error_on_bad_syntax(): |