aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_slackts.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2017-02-02 21:40:02 -0800
committerRyan Huber <rhuber@gmail.com>2017-02-02 21:40:02 -0800
commit01b9f3c2525ecaf331175f2e447423e915c2d476 (patch)
treef3c9adc3fed27029d24da53645bcb7c1e2b8a39e /_pytest/test_slackts.py
parent92f74774c9b810946fb850dc0b70088b64e59558 (diff)
downloadwee-slack-01b9f3c2525ecaf331175f2e447423e915c2d476.tar.gz
fixed crap
Diffstat (limited to '_pytest/test_slackts.py')
-rw-r--r--_pytest/test_slackts.py31
1 files changed, 18 insertions, 13 deletions
diff --git a/_pytest/test_slackts.py b/_pytest/test_slackts.py
index afe3719..87f43a7 100644
--- a/_pytest/test_slackts.py
+++ b/_pytest/test_slackts.py
@@ -2,18 +2,23 @@ from wee_slack import SlackTS
def test_slackts():
- a = SlackTS("1234.0")
- print a
- b = SlackTS("1234.002")
- print b
- print type(a.major)
- print type(a.minor)
- print type(b.major)
- print type(b.minor)
- print a.minor
- assert a < b
+ 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 > b
+ assert c > base
- print str(SlackTS())
- #assert False
+ assert base == "1485976156.000017"
+ assert base > "1485976156.000016"
+ assert base < "1485976156.000018"