<s> from st2tests . base import BaseActionAliasTestCase <EOL> class NcmConfigDownloadActionAliasTestCase ( BaseActionAliasTestCase ) : <EOL> action_alias_name = '<STR_LIT>' <EOL> def test_ncm_config_download_alias ( self ) : <EOL> format_string = self . action_alias_db . formats [ <NUM_LIT:0> ] [ '<STR_LIT>' ] [ <NUM_LIT:0> ] <EOL> format_strings = self . action_alias_db . get_format_strings ( ) <EOL> command = "<STR_LIT>" <EOL> expected_parameters = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> self . assertExtractedParametersMatch ( format_string = format_string , <EOL> command = command , <EOL> parameters = expected_parameters ) <EOL> self . assertCommandMatchesExactlyOneFormatString ( <EOL> format_strings = format_strings , <EOL> command = command ) <EOL> class NodeStatusActionAliasTestCase ( BaseActionAliasTestCase ) : <EOL> action_alias_name = '<STR_LIT>' <EOL> def test_node_status_alias ( self ) : <EOL> format_strings = self . action_alias_db . get_format_strings ( ) <EOL> format_string = self . action_alias_db . formats [ <NUM_LIT:0> ] [ '<STR_LIT>' ] [ <NUM_LIT:0> ] <EOL> command = "<STR_LIT>" <EOL> expected_parameters = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> self . assertExtractedParametersMatch ( format_string = format_string , <EOL> command = command , <EOL> parameters = expected_parameters ) <EOL> self . assertCommandMatchesExactlyOneFormatString ( <EOL> format_strings = format_strings , <EOL> command = command ) <EOL> class NodeCreateActionAliasTestCase ( BaseActionAliasTestCase ) : <EOL> action_alias_name = '<STR_LIT>' <EOL> def test_node_create_alias ( self ) : <EOL> format_strings = self . action_alias_db . get_format_strings ( ) <EOL> format_string = self . action_alias_db . formats [ <NUM_LIT:0> ] [ '<STR_LIT>' ] [ <NUM_LIT:0> ] <EOL> command = "<STR_LIT>" <EOL> expected_parameters = { <EOL> '<STR_LIT>' : "<STR_LIT>" , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> self . assertExtractedParametersMatch ( format_string = format_string , <EOL> command = command , <EOL> parameters = expected_parameters ) <EOL> self . assertCommandMatchesExactlyOneFormatString ( <EOL> format_strings = format_strings , <EOL> command = command ) <EOL> command = "<STR_LIT>" <EOL> expected_parameters = { <EOL> '<STR_LIT>' : "<STR_LIT>" , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : None <EOL> } <EOL> self . assertExtractedParametersMatch ( format_string = format_string , <EOL> command = command , <EOL> parameters = expected_parameters ) <EOL> self . assertCommandMatchesExactlyOneFormatString ( <EOL> format_strings = format_strings , <EOL> command = command ) <EOL> command = "<STR_LIT>" <EOL> expected_parameters = { <EOL> '<STR_LIT>' : "<STR_LIT>" , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> self . assertExtractedParametersMatch ( format_string = format_string , <EOL> command = command , <EOL> parameters = expected_parameters ) <EOL> self . assertCommandMatchesExactlyOneFormatString ( <EOL> format_strings = format_strings , <EOL> command = command ) <EOL> command = "<STR_LIT>" <EOL> expected_parameters = { <EOL> '<STR_LIT>' : "<STR_LIT>" , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : None <EOL> } <EOL> self . assertExtractedParametersMatch ( format_string = format_string , <EOL> command = command , <EOL> parameters = expected_parameters ) <EOL> self . assertCommandMatchesExactlyOneFormatString ( <EOL> format_strings = format_strings , <EOL> command = command ) <EOL> format_string = self . action_alias_db . formats [ <NUM_LIT:1> ] [ '<STR_LIT>' ] [ <NUM_LIT:0> ] <EOL> command = "<STR_LIT>" <EOL> expected_parameters = { <EOL> '<STR_LIT>' : "<STR_LIT>" , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> self . assertExtractedParametersMatch ( format_string = format_string , <EOL> command = command , <EOL> parameters = expected_parameters ) <EOL> self . assertCommandMatchesExactlyOneFormatString ( <EOL> format_strings = format_strings , <EOL> command = command ) <EOL> command = "<STR_LIT>" <EOL> expected_parameters = { <EOL> '<STR_LIT>' : "<STR_LIT>" , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> self . assertExtractedParametersMatch ( format_string = format_string , <EOL> command = command , <EOL> parameters = expected_parameters ) <EOL> self . assertCommandMatchesExactlyOneFormatString ( <EOL> format_strings = format_strings , <EOL> command = command ) <EOL> command = "<STR_LIT>" <EOL> expected_parameters = { <EOL> '<STR_LIT>' : "<STR_LIT>" , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : None <EOL> } <EOL> self . assertExtractedParametersMatch ( format_string = format_string , <EOL> command = command , <EOL> parameters = expected_parameters ) <EOL> self . assertCommandMatchesExactlyOneFormatString ( <EOL> format_strings = format_strings , <EOL> command = command ) <EOL> command = "<STR_LIT>" <EOL> expected_parameters = { <EOL> '<STR_LIT>' : "<STR_LIT>" , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : None <EOL> } <EOL> self . assertExtractedParametersMatch ( format_string = format_string , <EOL> command = command , <EOL> parameters = expected_parameters ) <EOL> self . assertCommandMatchesExactlyOneFormatString ( <EOL> format_strings = format_strings , <EOL> command = command ) </s>
