instead of raising the syntax error yourself we can generate a real syntax. What would the test look like if you actually add broken syntax to that case?