def METHOD_NAME(self):
    original_lines = [
        '#include "line0"',
    ]
    with self.assertRaisesRegex(Exception, "newline.*end of file"):
        FormatterBase("filename.cc", readlines=original_lines)