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