Beispiel #1
0
 def test_json_serialization_deserialization_keeps_value(self):
     o = ArrayOption('test', value_option=PathOption('_', path_type=Path))
     v = [Path('.'), Path('..')]
     j = o.serialize_json(v)
     self.assertEqual(o.deserialize_json(j), v)
Beispiel #2
0
 def test_json_deserialization_of_null(self):
     o = ArrayOption('test', value_option=PathOption('_', path_type=Path))
     self.assertEqual(o.deserialize_json('null'), None)