anki/tests/test_utils.py
2017-12-04 12:33:23 +10:00

8 lines
175 B
Python

# coding: utf-8
from anki.utils import fmtTimeSpan
def test_fmtTimeSpan():
assert fmtTimeSpan(5) == "5 seconds"
assert fmtTimeSpan(5, inTime=True) == "in 5 seconds"