summaryrefslogtreecommitdiff
path: root/src/test/libical-glib/misc.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/libical-glib/misc.py')
-rwxr-xr-x[-rw-r--r--]src/test/libical-glib/misc.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/libical-glib/misc.py b/src/test/libical-glib/misc.py
index 6ec8edb4..f5ce5d90 100644..100755
--- a/src/test/libical-glib/misc.py
+++ b/src/test/libical-glib/misc.py
@@ -37,17 +37,17 @@ assert geo_clone.get_lon() == 40.0
assert geo.get_lat() != geo_clone.get_lat()
assert geo.get_lon() != geo_clone.get_lon()
-start = ICalGLib.time_from_string("20190130T111213Z");
-end = ICalGLib.time_from_string("20190203T100908Z")
+start = ICalGLib.Time.from_string("20190130T111213Z");
+end = ICalGLib.Time.from_string("20190203T100908Z")
span = ICalGLib.TimeSpan.new(start, end, 0);
-assert span.get_start() == ICalGLib.time_as_timet(start)
-assert span.get_end() == ICalGLib.time_as_timet(end)
+assert span.get_start() == start.as_timet()
+assert span.get_end() == end.as_timet()
assert span.get_is_busy() == 0
-start = ICalGLib.time_from_string("20190330T131415Z");
-end = ICalGLib.time_from_string("20190403T070605Z")
+start = ICalGLib.Time.from_string("20190330T131415Z");
+end = ICalGLib.Time.from_string("20190403T070605Z")
span = ICalGLib.TimeSpan.new(start, end, 1);
-assert span.get_start() == ICalGLib.time_as_timet(start)
-assert span.get_end() == ICalGLib.time_as_timet(end)
+assert span.get_start() == start.as_timet()
+assert span.get_end() == end.as_timet()
assert span.get_is_busy() == 1
span = ICalGLib.TimeSpan.new_timet(11, 22, 1)