def METHOD_NAME(self):
    Quantity = UnitRegistry(autoconvert_offset_to_baseunit=True).Quantity
    ex = LogarithmicUnitCalculusError(Quantity("1 dB")._units)
    assert (
        str(ex)
        == "Ambiguous operation with logarithmic unit (decibel). See "
        + LOG_ERROR_DOCS_HTML
        + " for guidance."
    )
    ex = LogarithmicUnitCalculusError(
        Quantity("1 dB")._units, Quantity("1 octave")._units
    )
    assert (
        str(ex)
        == "Ambiguous operation with logarithmic unit (decibel, octave). See "
        + LOG_ERROR_DOCS_HTML
        + " for guidance."
    )
    with pytest.raises(PintError):
        raise ex