aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_slackts.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2017-02-02 20:08:51 -0800
committerRyan Huber <rhuber@gmail.com>2017-02-02 20:08:51 -0800
commit92f74774c9b810946fb850dc0b70088b64e59558 (patch)
treef24ea2070862e305a084764f43225ab152f43c14 /_pytest/test_slackts.py
parent77a8d219deec4c5be886297ce3eb095169acc87f (diff)
downloadwee-slack-92f74774c9b810946fb850dc0b70088b64e59558.tar.gz
add slack ts type
Diffstat (limited to '_pytest/test_slackts.py')
-rw-r--r--_pytest/test_slackts.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/_pytest/test_slackts.py b/_pytest/test_slackts.py
new file mode 100644
index 0000000..afe3719
--- /dev/null
+++ b/_pytest/test_slackts.py
@@ -0,0 +1,19 @@
+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
+ c = SlackTS()
+ assert c > b
+
+ print str(SlackTS())
+ #assert False