Exemplo n.º 1
0
 def test_template_04_pimages(self):
         templateList = api.Users(userTest).Appliances.Getall()
         templateList = templateList.appliances.appliance
         if len(templateList) == 0:
                 unittest.skip("No Template list for userTest.")
         else:
                 templateID = str(templateList[0].dbId)
                 template = Template_Cmd()
                 template.set_globals(api,login,password)
                 t = template.do_pimages("--account " + userTest + " --id " + templateID)
                 self.assertEquals(t,0)
Exemplo n.º 2
0
 def test_template_01_list(self):
         template = Template_Cmd()
         template.set_globals(api,login,password)
         t = template.do_list("--account root")
         self.assertEquals(t,0)