aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_slackts.py
blob: a77ba071a279f36f0244d58a6019f1ecf55c5348 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from __future__ import print_function, unicode_literals

from wee_slack import SlackTS


def test_slackts():
    base = SlackTS("1485976156.000017")

    b = SlackTS("1485976156.000016")
    c = SlackTS("1485976156.000018")

    d = SlackTS("1485976155.000017")
    e = SlackTS("1485976157.000017")

    assert base > b
    assert base < c

    assert base > d
    assert base < e

    c = SlackTS()
    assert c > base

    assert base == "1485976156.000017"
    assert base > "1485976156.000016"
    assert base < "1485976156.000018"