Skip to content
Snippets Groups Projects
test_default.py 451 B
Newer Older
Remy Mudingay's avatar
Remy Mudingay committed
import os
import testinfra.utils.ansible_runner
import testinfra
import unittest

testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
    os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')


#def test_default(host):
    # TODO: implement at least a test
    #assert False
def test_tinyproxy_is_installed(Package):
    tinyproxy = Package("tinyproxy")
    assert tinyproxy.is_installed
    assert tinyproxy.version.startswith("1.8.3")