def test_roundtrips_non_ascii(self): rev = Revision("revid1") rev.message = u"\n\xe5me" rev.committer = u'Erik B\xe5gfors' rev.timestamp = 1242385452 rev.inventory_sha1 = "4a2c7fb50e077699242cf6eb16a61779c7b680a7" rev.timezone = 3600 self.assertRoundTrips(chk_bencode_serializer, rev)
def test_roundtrips_xml_invalid_chars(self): rev = Revision("revid1") rev.message = "\t\ue000" rev.committer = u'Erik B\xe5gfors' rev.timestamp = 1242385452 rev.timezone = 3600 rev.inventory_sha1 = "4a2c7fb50e077699242cf6eb16a61779c7b680a7" self.assertRoundTrips(chk_bencode_serializer, rev)