def test_verifyparams_allowwarnRV():
    """Test: verify_beast_settings for case of warning with no exception."""
    with pytest.warns(UserWarning, match="Note: rvs grid is single-valued."):
        verify_beast_settings.verify_input_format(settings_mock_allowwarnRV())
def test_verifyparams_noallowRV():
    """Test: verify_beast_settings when warn raising except w/ allow_warnings=False"""
    with pytest.raises(UserWarning) as exc:
        verify_beast_settings.verify_input_format(settings_mock_noallowRV())
    assert exc.value.args[0] == "Note: rvs grid is single-valued."
def test_verifyparams_errorRV():
    """Test: verify_beast_settings for case of warning raising exception."""
    with pytest.raises(UserWarning) as exc:
        verify_beast_settings.verify_input_format(settings_mock_RV())
    assert exc.value.args[0] == "Note: rvs grid is single-valued."
def test_verifyparams_allowwarn():
    """Test: verify_beast_settings for case of warning with no exception."""
    with pytest.warns(UserWarning, match="fAs is not defined."):
        verify_beast_settings.verify_input_format(settings_mock_allowwarn())
def test_verifyparams_error():
    """Test: verify_beast_settings for case of warning raising exception."""
    with pytest.raises(UserWarning) as exc:
        verify_beast_settings.verify_input_format(settings_mock_nofA())
    assert exc.value.args[0] == "fAs is not defined."
def test_verifyparams_nowarning():
    """Test: verify_beast_settings for case of no warnings or exceptions."""
    with pytest.warns(None) as record:
        verify_beast_settings.verify_input_format(settings_mock())
    assert len(record) == 0