def assertWrites(self, glyphs_object, text):
expected = text.splitlines()<EOL>actual = test_helpers.write_to_lines(glyphs_object)<EOL>self.assertLinesEqual(<EOL>expected, actual, "<STR_LIT>"<EOL>)<EOL>
Assert that the given object, when given to the writer,
        produces the given text.