示例#1
0
 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
示例#2
0
 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
示例#3
0
 def test_new_from_dict(self, vel, json_):
     deser = VelocityTS.deserialize(vel.serialize(json_))
     vel2 = VelocityTS.new_from_dict(deser)
     assert vel == vel2
示例#4
0
 def test_new_from_dict(self, vel, json_):
     deser = VelocityTS.deserialize(vel.serialize(json_))
     vel2 = VelocityTS.new_from_dict(deser)
     assert vel == vel2