Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias Expr Call NameLoad Str ImportFrom alias Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad Dict Str Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad Dict Str Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Call NameLoad NameLoad NameLoad If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad keyword NameLoad
N/A N/A 
    :codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>`
 __future__ absolute_import salttesting skipIf TestCase salttesting.mock NO_MOCK NO_MOCK_REASON MagicMock patch salttesting.helpers ensure_in_syspath N/A N/A ensure_in_syspath ../../ salt.states boto_ec2 N/A N/A boto_ec2 __salt__ N/A N/A N/A boto_ec2 __opts__ N/A BotoEc2TestCase N/A TestCase N/A N/A 
    Test cases for salt.states.boto_ec2
     test_key_present N/A N/A self N/A N/A N/A 
        Test to ensure key pair is present.
         N/A name mykeypair N/A upublic salt://mybase/public_key.pub N/A ret N/A name result changes comment name True N/A N/A mock N/A MagicMock side_effect N/A True False False N/A mock_bool N/A MagicMock side_effect N/A IOError True N/A N/A N/A patch dict N/A boto_ec2 __salt__ N/A boto_ec2.get_key cp.get_file_str mock mock_bool N/A N/A comt N/A N/A The key name {0} already exists format name N/A N/A N/A ret update N/A comment comt N/A N/A N/A self assertDictEqual N/A N/A boto_ec2 key_present name ret N/A comt N/A N/A File {0} not found. format upublic N/A N/A N/A ret update N/A comment result comt False N/A N/A N/A self assertDictEqual N/A N/A boto_ec2 key_present name upload_public upublic ret N/A N/A N/A patch dict N/A boto_ec2 __opts__ N/A test True N/A N/A comt N/A N/A The key {0} is set to be created. format name N/A N/A N/A ret update N/A comment result comt None N/A N/A N/A self assertDictEqual N/A N/A boto_ec2 key_present name upload_public upublic ret N/A test_key_absent N/A N/A self N/A N/A N/A 
        Test to deletes a key pair
         N/A name new_table N/A ret N/A name result changes comment name True N/A N/A mock N/A MagicMock side_effect N/A False True N/A N/A N/A patch dict N/A boto_ec2 __salt__ N/A boto_ec2.get_key mock N/A N/A comt N/A N/A The key name {0} does not exist format name N/A N/A N/A ret update N/A comment comt N/A N/A N/A self assertDictEqual N/A N/A boto_ec2 key_absent name ret N/A N/A N/A patch dict N/A boto_ec2 __opts__ N/A test True N/A N/A comt N/A N/A The key {0} is set to be deleted. format name N/A N/A N/A ret update N/A comment result comt None N/A N/A N/A self assertDictEqual N/A N/A boto_ec2 key_absent name ret N/A N/A N/A skipIf NO_MOCK NO_MOCK_REASON N/A N/A __name__ __main__ N/A integration run_tests N/A N/A run_tests BotoEc2TestCase needs_daemon False