def stanzas_to_str(stanzas): return rio_file(stanzas).read()
def rio_file_stanzas(self, stanzas): new_stanzas = list(RioReader(rio_file(stanzas))) self.assertEqual(new_stanzas, stanzas)
def check_rio_file(self, real_file): real_file.seek(0) read_write = rio_file(RioReader(real_file)).read() real_file.seek(0) self.assertEqual(read_write, real_file.read())