From fc1eca7ac39bfc0dc82b2809b19b3d1c7b64a2c7 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 12 Apr 2021 20:43:42 +0200 Subject: fix: remove all remaining safejids (fix #3457) --- test/test_common.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'test') diff --git a/test/test_common.py b/test/test_common.py index b6560fc9..3235632d 100644 --- a/test/test_common.py +++ b/test/test_common.py @@ -11,7 +11,7 @@ from poezio.common import (_datetime_tuple as datetime_tuple, get_utc_time, get_local_time, shell_split, _find_argument_quoted as find_argument_quoted, _find_argument_unquoted as find_argument_unquoted, parse_str_to_secs, - parse_secs_to_str, safeJID, unique_prefix_of) + parse_secs_to_str, unique_prefix_of) def test_utc_time(): delta = timedelta(seconds=-3600) @@ -60,10 +60,6 @@ def test_parse_secs_to_str(): with pytest.raises(TypeError): parse_secs_to_str('toto') -def test_safeJID(): - assert safeJID('toto@titi/tata') == JID('toto@titi/tata') - assert safeJID('toto@…') == JID('') - def test_unique_prefix_of__no_shared_prefix(): assert unique_prefix_of("a", "b") == "a" assert unique_prefix_of("foo", "bar") == "f" -- cgit v1.2.3