aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_slackchannel.py
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-05-10 15:50:16 -0500
committerTrygve Aaberge <trygveaa@gmail.com>2019-04-08 15:11:57 +0200
commit60a842e141fd0710873f018e0908764f08132a77 (patch)
tree05457e7f7507e615bf6b50ff6c53894c3bc1b2d5 /_pytest/test_slackchannel.py
parent3639342e26f7e890ae600e74c7661ad84abb5700 (diff)
downloadwee-slack-60a842e141fd0710873f018e0908764f08132a77.tar.gz
Always use the print function from Python 3
Comments are updated as well as live code.
Diffstat (limited to '_pytest/test_slackchannel.py')
-rw-r--r--_pytest/test_slackchannel.py40
1 files changed, 21 insertions, 19 deletions
diff --git a/_pytest/test_slackchannel.py b/_pytest/test_slackchannel.py
index 7d93afc..9f48625 100644
--- a/_pytest/test_slackchannel.py
+++ b/_pytest/test_slackchannel.py
@@ -1,33 +1,35 @@
+from __future__ import print_function
+
from mock import Mock
#from wee_slack import SlackChannel
def test_SlackChannel(realish_eventrouter):
e = realish_eventrouter
- print e.sc["team"].channels
+ print(e.sc["team"].channels)
#c = SlackChannel(e, **json.loads(chan))
c = e.sc["team"].channels['C3ZEQAYN7']
- print c.formatted_name()
+ print(c.formatted_name())
c.is_someone_typing = Mock(return_value=True)
c.channel_buffer = Mock(return_value=True)
- print c.create_buffer()
- print c.rename()
- print c.current_short_name
- print c.formatted_name()
- print c.rename()
- print c.formatted_name()
+ print(c.create_buffer())
+ print(c.rename())
+ print(c.current_short_name)
+ print(c.formatted_name())
+ print(c.rename())
+ print(c.formatted_name())
- print "-------"
- print c == "random"
- print "-------"
- print c == "#random"
- print "-------"
- print c == "weeslacktest.slack.com.#random"
- print "-------"
- print c == "weeslacktest.slack.com.random"
- print "-------"
- print c == "dandom"
+ print("-------")
+ print(c == "random")
+ print("-------")
+ print(c == "#random")
+ print("-------")
+ print(c == "weeslacktest.slack.com.#random")
+ print("-------")
+ print(c == "weeslacktest.slack.com.random")
+ print("-------")
+ print(c == "dandom")
- print e.weechat_controller.buffers
+ print(e.weechat_controller.buffers)
#assert False