Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_v2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ def test_limits(self):
self.assertEqual(otio.schema.V2d.baseTypeEpsilon(), sys.float_info.epsilon)

def test_json_serialization(self):
serialized = otio.adapters.otio_json.write_to_string(otio.schema.V2d())
serialized = otio.adapters.otio_json.write_to_string(otio.schema.V2d(0.1, 0.2))
json_v2d = json.loads(serialized)
self.assertEqual(json_v2d["OTIO_SCHEMA"], "V2d.1")

def test_serialization_round_trip(self):
v2d = otio.schema.V2d()
v2d = otio.schema.V2d(0.3, 0.4)
serialized = otio.adapters.otio_json.write_to_string(v2d)
deserialized = otio.adapters.otio_json.read_from_string(serialized)
self.assertEqual(v2d, deserialized)
Expand Down
Loading