Ejemplo n.º 1
0
 def test_baredoc_state_docs_single_arg(self):
     ret = baredoc.state_docs("xml")
     assert "XML Manager" in ret["xml"]
     ret = baredoc.state_docs("xml.value_present")
     assert "Manages a given XML file" in ret["xml.value_present"]
Ejemplo n.º 2
0
 def test_baredoc_state_docs_multiple_args(self):
     ret = baredoc.state_docs("zabbix_hostgroup.present", "xml")
     assert "Ensures that the host group exists" in ret[
         "zabbix_hostgroup.present"]
     assert "XML Manager" in ret["xml"]
     assert "Manages a given XML file" in ret["xml.value_present"]
Ejemplo n.º 3
0
 def test_baredoc_state_docs(self):
     ret = baredoc.state_docs()
     assert "XML Manager" in ret["xml"]
     assert "zabbix_usergroup" in ret