From 348892465ba04f3accf79f86cd37e715c8c04ebc Mon Sep 17 00:00:00 2001 From: dfeinzeig Date: Thu, 19 Mar 2015 21:50:52 -0400 Subject: [PATCH] update test_str_to_time() bc some IdPs omit the trailing Z --- tests/test_10_time_util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_10_time_util.py b/tests/test_10_time_util.py index 5ebc369..323126d 100644 --- a/tests/test_10_time_util.py +++ b/tests/test_10_time_util.py @@ -123,7 +123,9 @@ def test_str_to_time(): #TODO: add something to show how this time was arrived at # do this as an external method in the assert t == 947635200 - + # some IdPs omit the trailing Z, and SAML spec is unclear if it is actually required + t = calendar.timegm(str_to_time("2000-01-12T00:00:00")) + assert t == 947635200 def test_instant(): inst = str_to_time(instant())