def METHOD_NAME(self, test_env):
    with pytest.raises(TemplateSyntaxError):
        test_env.from_string('{% from "foo" import bar, %}')
    with pytest.raises(TemplateSyntaxError):
        test_env.from_string('{% from "foo" import bar,, %}')
    with pytest.raises(TemplateSyntaxError):
        test_env.from_string('{% from "foo" import, %}')