python-betterproto/tests/inputs/repeated_duration_timestamp/test_repeated_duration_timestamp.py
2022-03-17 00:01:17 +00:00

13 lines
274 B
Python

from datetime import (
datetime,
timedelta,
)
from tests.output_betterproto.repeated_duration_timestamp import Test
def test_roundtrip():
message = Test()
message.times = [datetime.now(), datetime.now()]
message.durations = [timedelta(), timedelta()]