summaryrefslogtreecommitdiff
path: root/fastimport/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-04-04 02:05:37 +0200
committerJelmer Vernooij <jelmer@samba.org>2012-04-04 02:05:37 +0200
commit55170a74a2999fa5bcdd6099523831371c3be204 (patch)
tree3fbaabc79559662146fc66a8afc7406de79c2612 /fastimport/tests
parentf4d52ab7bf5eae5f12f8dee300543bc827ed473b (diff)
downloadpython-fastimport-55170a74a2999fa5bcdd6099523831371c3be204.tar.gz
Cope with invalid timezones like +51800 a little bit better.
Diffstat (limited to 'fastimport/tests')
-rw-r--r--fastimport/tests/test_dates.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/fastimport/tests/test_dates.py b/fastimport/tests/test_dates.py
index 109318c..aae8b78 100644
--- a/fastimport/tests/test_dates.py
+++ b/fastimport/tests/test_dates.py
@@ -29,3 +29,6 @@ class ParseTzTests(TestCase):
def test_parse_tz_cet(self):
self.assertEquals(3600, dates.parse_tz("+0100"))
+
+ def test_parse_tz_odd(self):
+ self.assertEquals(1864800, dates.parse_tz("+51800"))