def METHOD_NAME(self, filename):
    """Ensure versions other than 2.0 or 2 fail."""
    filename = os.path.join(self.qasm_dir, filename)
    with self.assertRaisesRegex(
        QasmError, r"Invalid version: '.+'\. This module supports OpenQASM 2\.0 only\."
    ):
        parse(filename)