anki/tests/test_utils.py

8 lines
175 B
Python
Raw Normal View History

2017-12-04 03:33:23 +01:00
# coding: utf-8
from anki.utils import fmtTimeSpan
def test_fmtTimeSpan():
assert fmtTimeSpan(5) == "5 seconds"
assert fmtTimeSpan(5, inTime=True) == "in 5 seconds"