From 9c131ee1b22a6f2e9d1135cf341bfff953ef1884 Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Tue, 25 Aug 2020 13:31:40 +0200 Subject: [PATCH] TST: Add timezone test --- unittests/test_cfood.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unittests/test_cfood.py b/unittests/test_cfood.py index f340bfb8..27048865 100644 --- a/unittests/test_cfood.py +++ b/unittests/test_cfood.py @@ -236,6 +236,11 @@ class InsertionTest(unittest.TestCase): entity_xml.format("2020-01-01T00:00:00.000"))) assure_has_property(entity=rec, name="TestDate", value=datetime( 2020, 1, 1), to_be_updated=to_be_updated) + rec = _parse_single_xml_element(etree.fromstring( + entity_xml.format("2020-01-01T00:00:00.000+0100"))) + assure_has_property(entity=rec, name="TestDate", value=datetime( + 2020, 1, 1), to_be_updated=to_be_updated) + assert len(to_be_updated) == 1 -- GitLab