def test_big_number(self):
     c = Context(value=1.0, cohorts={40000})
     s = c.serialize(zipped=True)
     c2 = Context.deserialize(s,zipped=True)
     c == c2
 def test_deserialize(self):
     c = Context(value=1.0, cohorts={0,1,2})
     s = c.serialize(zipped=True)
     c2 = Context.deserialize(s,zipped=True)
     c == c2