Module Expr Str ImportFrom alias Import alias ImportFrom alias alias ImportFrom alias alias alias alias alias ImportFrom alias Expr Call NameLoad Str ImportFrom alias Import 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 Dict Str Str Str Str NameLoad NameLoad Str Dict Assign NameStore Call NameLoad keyword ListLoad ListLoad ListLoad Str Dict Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Str 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 Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call NameLoad CompareNotEq Call AttributeLoad NameLoad attr Num Str Call NameLoad Str Call NameLoad keyword NameLoad 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 N/A os salttesting skipIf TestCase salttesting.mock NO_MOCK NO_MOCK_REASON MagicMock mock_open patch salttesting.helpers ensure_in_syspath N/A N/A ensure_in_syspath ../../ salt.states virt N/A salt.utils N/A N/A virt __salt__ N/A N/A N/A virt __opts__ N/A LibvirtTestCase N/A TestCase N/A N/A 
    Test cases for salt.states.libvirt
     test_keys N/A N/A self N/A N/A N/A 
        Test to manage libvirt keys.
         N/A name sunrise N/A ret N/A name result comment changes name True N/A N/A mock N/A MagicMock side_effect N/A N/A N/A libvirt.servercert.pem N/A libvirt.servercert.pem A N/A N/A N/A patch dict N/A virt __salt__ N/A pillar.ext mock N/A N/A comt All keys are correct N/A N/A N/A ret update N/A comment comt N/A N/A N/A self assertDictEqual N/A N/A virt keys name ret N/A N/A N/A patch dict N/A virt __opts__ N/A test True N/A N/A comt Libvirt keys are set to be updated 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 virt keys name ret N/A N/A N/A patch dict N/A virt __opts__ N/A test False N/A N/A N/A N/A patch object N/A salt utils fopen N/A MagicMock N/A mock_open N/A N/A comt Updated libvirt certs and keys N/A N/A N/A ret update N/A comment result changes comt True N/A servercert new N/A N/A N/A self assertDictEqual N/A N/A virt keys name ret N/A N/A skipIf N/A N/A N/A os geteuid 0 you must be root to run this test N/A patch os.path.isfile N/A MagicMock return_value False 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 LibvirtTestCase needs_daemon False