aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_slackdmchannel.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_slackdmchannel.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_slackdmchannel.py')
-rw-r--r--_pytest/test_slackdmchannel.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/_pytest/test_slackdmchannel.py b/_pytest/test_slackdmchannel.py
index 203c4ae..15b0626 100644
--- a/_pytest/test_slackdmchannel.py
+++ b/_pytest/test_slackdmchannel.py
@@ -1,20 +1,22 @@
+from __future__ import print_function
+
from mock import Mock
#from wee_slack import SlackChannel
def test_SlackDMChannel(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['D3ZEQULHZ']
- 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())
# assert False