tailot's picture
thinking-python: reference implementation, corpus and gates
4bc63c7 verified
Raw History Blame Contribute Delete
290 Bytes
from jobqueue import drain, head, line, retry
def test_drain():
assert drain([{'id': 'j'}]) == ['j']
def test_retry():
assert retry(5) == 35
def test_head():
assert head({'queued': True, 'id': 'j'}) == 'j'
def test_line():
assert line({'id': 'j', 'at': '9'}) == 'j @ 9'