summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2016-12-19 18:09:27 -0500
committerAllen Winter <allen.winter@kdab.com>2016-12-19 18:09:27 -0500
commit0af9cbbde4cfcf9f4bddd5006b9eb46758b9ff69 (patch)
treeb535bc2ac0348725f8a577fff085784f5bc388a3 /src/test
parentd36739e91f8073402ee81683705159f70ec6d3e1 (diff)
downloadlibical-git-0af9cbbde4cfcf9f4bddd5006b9eb46758b9ff69.tar.gz
libical-glib/component.py, property.py - follow removal of deprecated
Diffstat (limited to 'src/test')
-rwxr-xr-xsrc/test/libical-glib/component.py5
-rwxr-xr-xsrc/test/libical-glib/property.py4
2 files changed, 5 insertions, 4 deletions
diff --git a/src/test/libical-glib/component.py b/src/test/libical-glib/component.py
index 8999dd19..a638822f 100755
--- a/src/test/libical-glib/component.py
+++ b/src/test/libical-glib/component.py
@@ -244,8 +244,9 @@ def main():
assert(span.get_start() == 1394096400);
assert(span.get_end() == 1394098200);
assert(span.is_busy() == 1);
- comp.set_dtstart(ICalGLib.time_from_timet(1494096400, 0));
- comp.set_dtend(ICalGLib.time_from_timet(1494098200, 0));
+ utc = ICalGLib.Timezone.get_utc_timezone();
+ comp.set_dtstart(ICalGLib.time_from_timet_with_zone(1494096400, 0, utc));
+ comp.set_dtend(ICalGLib.time_from_timet_with_zone(1494098200, 0, utc));
span = comp.get_span();
assert(span.get_start() == 1494096400);
assert(span.get_end() == 1494098200);
diff --git a/src/test/libical-glib/property.py b/src/test/libical-glib/property.py
index 494c660a..0944f595 100755
--- a/src/test/libical-glib/property.py
+++ b/src/test/libical-glib/property.py
@@ -49,7 +49,7 @@ assert(retrieved_parameter2.as_ical_string_r() == parameter2.as_ical_string_r())
retrieved_parameter3 = string_property.get_first_parameter(ICalGLib.ParameterKind.ACTIONPARAM_PARAMETER);
assert(retrieved_parameter3.as_ical_string_r() == "ACTIONPARAM=This is a action param");
-string_property.remove_parameter(ICalGLib.ParameterKind.CHARSET_PARAMETER);
+string_property.remove_parameter_by_kind(ICalGLib.ParameterKind.CHARSET_PARAMETER);
assert(string_property.count_parameters() == 3);
string_property.remove_parameter_by_kind(ICalGLib.ParameterKind.ALTREP_PARAMETER);
assert(string_property.count_parameters() == 2);
@@ -89,7 +89,7 @@ string = ICalGLib.Property.method_to_string(ICalGLib.PropertyMethod.PUBLISH);
assert(ICalGLib.Property.string_to_method(string) == ICalGLib.PropertyMethod.PUBLISH);
string = ICalGLib.Property.enum_to_string_r(ICalGLib.PropertyMethod.PUBLISH);
-assert(ICalGLib.PropertyMethod.PUBLISH == ICalGLib.Property.string_to_enum(string));
+assert(string == "PUBLISH");
#Test i_cal_value_set_parent. No error will be thrown.
property_string = "SUMMARY:Bastille Day Party";