예제 #1
0
 def testDeserializeStrip(self):
     ta = TextAttributeDomain('John')
     self.assertEquals(u'Ураа!', ta.deserialize(' Ураа! ').value())
예제 #2
0
 def testSerialize(self):
     ta = TextAttributeDomain('John')
     a = Attribute('John', u'Ураа!')
     self.assertEquals('Ураа!', ta.serialize(a))
     a = Attribute('John', 'Ураа!')
     self.assertEquals('Ураа!', ta.serialize(a))