def METHOD_NAME():
    with pytest.raises(DagsterInvalidDefinitionError):
        StaticPartitionsDefinition(["foo...bar"])
    with pytest.raises(DagsterInvalidDefinitionError, match="n"):
        StaticPartitionsDefinition(["foo\nfoo"])
    with pytest.raises(DagsterInvalidDefinitionError, match="b"):
        StaticPartitionsDefinition(["foo\bfoo"])