1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: Remove test_timeout()
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/938093
Forwarded: no
Last-Update: 2024-03-11
Index: python-pysaml2/tests/test_32_cache.py
===================================================================
--- python-pysaml2.orig/tests/test_32_cache.py
+++ python-pysaml2/tests/test_32_cache.py
@@ -112,14 +112,3 @@
assert _eq(self.cache.receivers(nid[1]), ["abcd", "bcde"])
assert nid_eq(self.cache.subjects(), nid[0:2])
-
- def test_timeout(self):
- not_on_or_after = str_to_time(in_a_while(seconds=1))
- session_info = SESSION_INFO_PATTERN.copy()
- session_info["ava"] = {"givenName": ["Alex"], "surName": ["Rodriguez"]}
- self.cache.set(nid[2], "bcde", session_info, not_on_or_after)
-
- time.sleep(2)
- (ava, inactive) = self.cache.get_identity(nid[2])
- assert inactive == ["bcde"]
- assert ava == {}
|