diff options
author | mathieui <mathieui@mathieui.net> | 2016-08-21 15:39:46 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-08-21 15:58:07 +0200 |
commit | 5f0c0fbb0adb45407008d84dc1b6e843cd94870c (patch) | |
tree | 4bf746e3fcc5b3abddb723b1ced620e4e3ac0682 /test/test_common.py | |
parent | 84e59b05ff0a17178da9ecdb6c5d084e48b42763 (diff) | |
download | poezio-5f0c0fbb0adb45407008d84dc1b6e843cd94870c.tar.gz poezio-5f0c0fbb0adb45407008d84dc1b6e843cd94870c.tar.bz2 poezio-5f0c0fbb0adb45407008d84dc1b6e843cd94870c.tar.xz poezio-5f0c0fbb0adb45407008d84dc1b6e843cd94870c.zip |
Update tests
Diffstat (limited to 'test/test_common.py')
-rw-r--r-- | test/test_common.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test/test_common.py b/test/test_common.py index dde49524..d7bc2b8b 100644 --- a/test/test_common.py +++ b/test/test_common.py @@ -2,19 +2,16 @@ Test the functions in the `common` module """ -import sys -sys.path.append('poezio') - import time import pytest import datetime from slixmpp import JID from datetime import timedelta -from 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) +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) def test_utc_time(): delta = timedelta(seconds=-3600) @@ -65,4 +62,4 @@ def test_parse_secs_to_str(): def test_safeJID(): assert safeJID('toto@titi/tata') == JID('toto@titi/tata') - assert safeJID('é_è') == JID('') + assert safeJID('toto@…') == JID('') |