def METHOD_NAME():
    @attr.s
    class SameDriver(Driver):
        pass
    with pytest.raises(RegistrationError) as excinfo:
        target_factory.reg_driver(SameDriver)
        target_factory.reg_driver(SameDriver)
    assert "driver with name" in excinfo.value.msg