def METHOD_NAME(testdir):
    run_test_code(
        testdir,
        """
    from ophyd import EpicsSignal
    pv_base = "%s"
    def test_without_defaults_no_string():
        signal = EpicsSignal(f"{pv_base}.SCAN", name="signal", string=True)
        signal.wait_for_connection()
        desc = signal.describe()
        assert signal.as_string
        assert desc["signal"]["dtype"] == "string"
    """
        % pv_base,
    )