def testOpenVas(): o = Openvas() o.name = "Basic test" o.description = "Openvas scan against localhost" #o.target = "localhost" o.target = "www.rdexperts.com" o.status = "NEW" save.delay(o) #@UndefinedVariable run.delay(o) #@UndefinedVariable
def testNmap(): result = run.delay("www.rdexperts.com") #@UndefinedVariable print result.wait()