Python test cases should be runnable scripts
In addition to being compile-able, the generated files should also be runnable and their output should be the same as the Python script.  That adds an extra layer of validation.