Exemple #1
0
 def rio_file_stanzas(self, stanzas):
     new_stanzas = list(RioReader(rio_file(stanzas)))
     self.assertEqual(new_stanzas, stanzas)
Exemple #2
0
 def stanzas_to_str(stanzas):
     return rio_file(stanzas).read()
Exemple #3
0
 def check_rio_file(self, real_file):
     real_file.seek(0)
     read_write = rio_file(RioReader(real_file)).read()
     real_file.seek(0)
     self.assertEquals(read_write, real_file.read())
Exemple #4
0
 def rio_file_stanzas(self, stanzas):
     new_stanzas = list(RioReader(rio_file(stanzas)))
     self.assertEqual(new_stanzas, stanzas)
Exemple #5
0
 def stanzas_to_str(stanzas):
     return rio_file(stanzas).read()
Exemple #6
0
 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())