def test_parse_substitution_error_if_third_element_not_bool():
    """
    Raise a SyntaxError if the third element in the list is not a boolean.
    """
    with pytest.raises(SyntaxError):
        bad_args = ['foo', 'bar', 'intentionally_not_a_bool']
        config.parse_substitution_from_list(bad_args)

    Raise a SyntaxError if the third element in the list is not a boolean.
    
test/config_test.py