def arango_test_ops(arango_client, expected_version, username="root", password=""):
    """
    Basic ArangoDB operations to test DB really up and running.
    """
    students_to_insert_cnt = 3

    # Taken from https://github.com/ArangoDB-Community/python-arango/blob/main/README.md
    # Connect to "_system" database as root user.
    sys_db = arango_client.db("_system", username=username, password=password)
    assert sys_db.version() == expected_version

    # Create a new database named "test".
    sys_db.create_database("test")

    # Connect to "test" database as root user.
    database = arango_client.db("test", username=username, password=password)

    # Create a new collection named "students".
    students = database.create_collection("students")

    # Add a hash index to the collection.
    students.add_hash_index(fields=["name"], unique=True)

    # Insert new documents into the collection. (students_to_insert_cnt)
    students.insert({"name": "jane", "age": 39})
    students.insert({"name": "josh", "age": 18})
    students.insert({"name": "judy", "age": 21})

    # Execute an AQL query and iterate through the result cursor.
    cursor = database.aql.execute("FOR doc IN students RETURN doc")
    student_names = [document["name"] for document in cursor]

    assert len(student_names) == students_to_insert_cnt

    Basic ArangoDB operations to test DB really up and running.
    
modules/arangodb/tests/test_arangodb.py