コード例 #1
0
 def test_allowed_update_should_not_match_invalid(self):
     strategy = PromptInPlace()
     match = strategy.allowed_update()
     matcher = 'LCfoo.%s.%s.%s.%s.%s' % (
         'Metadata',
         'AWS::CloudFormation::Init',
         'trigger',
         'commands',
         '01-echo.command'
     )
     assert_equals(match.match(matcher), None)
コード例 #2
0
 def test_termination_policy_returns_array(self):
     strategy = PromptInPlace()
     assert_equals(
         strategy.termination_policy(),
         ['OldestInstance', 'Default']
     )
コード例 #3
0
 def test_should_prompt_delete_false(self):
     strategy = PromptInPlace()
     assert_equals(strategy.should_prompt('delete'), True)
コード例 #4
0
 def test_should_update_false(self):
     strategy = PromptInPlace()
     assert_equals(strategy.should_update('update'), True)