from __future__ import annotations

import pytest

import xia2.Driver.DriverFactory as DF


def test_instantiate_driver():
    assert DF.DriverFactory.Driver()


def test_instantiate_nonexistent_driver_fails():
    with pytest.raises(RuntimeError):
        DF.DriverFactory.Driver("nosuchtype")
