Commit 2994a8e1 authored by mathieui's avatar mathieui

Update tests

parent ed5f7b18
......@@ -10,9 +10,11 @@ import pytest
import datetime
from slixmpp import JID
from datetime import timedelta
from common import (datetime_tuple, get_utc_time, get_local_time, shell_split,
find_argument_quoted, find_argument_unquoted,
parse_str_to_secs, parse_secs_to_str, safeJID)
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)
def test_utc_time():
delta = timedelta(seconds=-3600)
......
......@@ -10,7 +10,7 @@ from theming import dump_tuple, read_tuple
def test_read_tuple():
assert read_tuple('1,-1,u') == ((1, -1), 'u')
assert read_tuple('1,2') == ((1, 2), None)
assert read_tuple('1,2') == ((1, 2), '\0')
with pytest.raises(IndexError):
read_tuple('1')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment