def test_serialization(self): p_data = self.p.toJSON() q = PrototypeHMM(None) q.fromJSON(p_data) self.assertEqual(p_data, q.toJSON())