def print_line(self, text): print ztext.to_zscii(text)
def testCanGetZsciiFromZtext(self): self.assertEquals("abc",ztext.to_zscii([6,7,8])) self.assertEquals("Abc",ztext.to_zscii([4,6,7,8])) self.assertEquals("", ztext.to_zscii([4,4,4,4])) self.assertEquals("7!",ztext.to_zscii([5,15,5,20])) self.assertEquals(" \n \n",ztext.to_zscii([0,1,5,6,5,7]))