def METHOD_NAME(run_module, admin_user):
    org = Organization.objects.create(name='test-org')
    inv = Inventory.objects.create(name='test-inv', organization=org)
    # Credential is not required for ec2 source, because of IAM roles
    result = run_module('inventory_source', dict(name='Test Inventory Source', inventory='test-inv', source='ec2', state='present'), admin_user)
    assert result.pop('changed', None), result
    inv_src = InventorySource.objects.get(name='Test Inventory Source')
    assert inv_src.inventory == inv
    result.pop('invocation')
    assert result == {
        "name": "Test Inventory Source",
        "id": inv_src.id,
    }