@classmethod<EOL><INDENT>def setUpClass(cls):<DEDENT>
jp2file = glymur.data.nemo()<EOL>with tempfile.NamedTemporaryFile(suffix='<STR_LIT>', delete=False) as tfile:<EOL><INDENT>cls._bad_xml_file = tfile.name<EOL>with open(jp2file, '<STR_LIT:rb>') as ifile:<EOL><INDENT>write_buffer = ifile.read(<NUM_LIT>)<EOL>tfile.write(write_buffer)<EOL>write_buffer = struct.pack('<STR_LIT>', int(<NUM_LIT>), b'<STR_LIT>')<EOL>tfile.write(write_buffer)<EOL>write_buffer = '<STR_LIT>'<EOL>write_buffer = write_buffer.encode()<EOL>tfile.write(write_buffer)<EOL>write_buffer = ifile.read()<EOL>tfile.write(write_buffer)<EOL>tfile.flush()<EOL><DEDENT><DEDENT>
Setup a JP2 file with a bad XML box.  We only need to do this once
        per class rather than once per test.