145:9c65d66fcda1
Anton Shestakov <av6@dwimlabs.net>, Sun, 17 Jul 2016 05:23:08 +0800
utils: adopt now() (renamed to timestamp()) and parse_timestamp(), test them

next change 160:fda1f8cab608

tests/test_utils.py

Permissions: -rw-r--r--

Other formats: Feeds:
from datetime import datetime
from candolint.utils import parse_timestamp, timestamp
def test_timestamp_and_parse():
result = parse_timestamp(timestamp())
assert isinstance(result, datetime)
assert result.utcoffset() is None