tailot's picture
thinking-python: reference implementation, corpus and gates
4bc63c7 verified
Raw History Blame Contribute Delete
274 Bytes
from session import bind, tag, tokens, ttl
def test_tokens():
assert tokens(['A', 'B']) == ['a', 'b']
def test_ttl():
assert ttl(2) == 120
def test_bind():
assert bind({'verified': True, 'id': 7}) == 7
def test_tag():
assert tag({'id': 'q'}) == 'user q'