def test_update_from_dict(self, vel, json_): deser = VelocityTS.deserialize(vel.serialize(json_)) vel2 = VelocityTS.new_from_dict(deser) deser['name'] = 'vel2' vel.update_from_dict(deser) vel2.name = 'vel2' assert vel.name == 'vel2' assert vel == vel2
def test_new_from_dict(self, vel, json_): deser = VelocityTS.deserialize(vel.serialize(json_)) vel2 = VelocityTS.new_from_dict(deser) assert vel == vel2