def get_inventory():
    try:
        inventory_string = di.main({'config': TARGET_DIR})
        inventory = json.loads(inventory_string)
        return inventory
    finally:
        # Remove the file system artifacts since we want to force fresh runs
        cleanup()
Checks the object was saved in given language with given attributes
dataset/ETHPy150Open openstack/openstack-ansible/tests/test_inventory.py/get_inventory--crossover with--dataset/ETHPy150Open KristianOellegaard/django-hvad/hvad/test_utils/testcase.py/HvadTestCase.assertSavedObject