aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_text.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2020-04-14 18:18:46 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2020-04-14 18:18:46 -0400
commit4c497ac833ee559fc1d4cf91c31ae0ac6a0fdb08 (patch)
tree263b54798896833eba7cd89a5f7b5cbb102c1f61 /test/test_text.py
parent093c726dcd0772f0a3c7607be9d3025d46f60ea7 (diff)
parentcf188f30e1c27bdb900fa2623a9ff91b944633b2 (diff)
Update upstream source from tag 'upstream/1.13.4'
Update to upstream version '1.13.4' with Debian dir 60f0f28d8e471cd35c47195c7dba1f1d50a2b576
Diffstat (limited to 'test/test_text.py')
-rw-r--r--test/test_text.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_text.py b/test/test_text.py
index 6a6d83a..0390823 100644
--- a/test/test_text.py
+++ b/test/test_text.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-# Copyright 2015-2018 Mike Fährmann
+# Copyright 2015-2020 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -376,6 +376,10 @@ class TestText(unittest.TestCase):
datetime.datetime(2019, 5, 7, 12, 25, 2),
)
self.assertEqual(
+ f("2019-05-07T21:25:02", "%Y-%m-%dT%H:%M:%S", utcoffset=9),
+ datetime.datetime(2019, 5, 7, 12, 25, 2),
+ )
+ self.assertEqual(
f("2019-05-07 21:25:02"),
"2019-05-07 21:25:02",
)