Skip to content

Commit

Permalink
Merge pull request aws#3157 from joguSD/alias-unit-test
Browse files Browse the repository at this point in the history
Switch service in unit test
  • Loading branch information
joguSD authored Feb 22, 2018
2 parents 23aad2a + 00035c7 commit 00e30cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/customizations/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_rename_command_table(self):
class TestCommandTableAlias(BaseAWSHelpOutputTest):

def test_alias_command_table(self):
old_name = 'ec2'
old_name = 'alexaforbusiness'
new_name = 'nopossiblewaythisisalreadythere'

def handler(command_table, **kwargs):
Expand All @@ -58,7 +58,7 @@ def handler(command_table, **kwargs):
self.assert_not_contains(old_name)

def test_make_hidden_alias(self):
old_name = 'ec2'
old_name = 'alexaforbusiness'
new_name = 'nopossiblewaythisisalreadythere'

def handler(command_table, **kwargs):
Expand All @@ -79,8 +79,8 @@ def _assert_command_exists(self, command_name, handler):
self.assert_contains(command_name)

# We can also see subcommands help as well.
self.driver.main([command_name, 'run-instances', 'help'])
self.assert_contains('run-instances')
self.driver.main([command_name, 'get-room', 'help'])
self.assert_contains('get-room')


class TestHiddenAlias(unittest.TestCase):
Expand Down

0 comments on commit 00e30cb

Please sign in to comment.