def testSerialize(self): ta = IntAttributeDomain('John') a = Attribute('John', 1586) self.assertEquals(1586, ta.serialize(a))