aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_slackts.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2017-04-12 16:47:43 +0000
committerRyan Huber <rhuber@gmail.com>2017-04-12 16:47:43 +0000
commit95fa084893660b655388604084f082a080f1ba32 (patch)
tree8c667c21f591572052f6b3a046c1b94712285c40 /_pytest/test_slackts.py
parent01beb42fec5c6dbfc0d8c53ce1de88b48b48f6db (diff)
downloadwee-slack-95fa084893660b655388604084f082a080f1ba32.tar.gz
massssssssive merge of the new codebase
Diffstat (limited to '_pytest/test_slackts.py')
-rw-r--r--_pytest/test_slackts.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/_pytest/test_slackts.py b/_pytest/test_slackts.py
new file mode 100644
index 0000000..87f43a7
--- /dev/null
+++ b/_pytest/test_slackts.py
@@ -0,0 +1,24 @@
+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"