aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_slackdmchannel.py
diff options
context:
space:
mode:
Diffstat (limited to '_pytest/test_slackdmchannel.py')
-rw-r--r--_pytest/test_slackdmchannel.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/_pytest/test_slackdmchannel.py b/_pytest/test_slackdmchannel.py
new file mode 100644
index 0000000..203c4ae
--- /dev/null
+++ b/_pytest/test_slackdmchannel.py
@@ -0,0 +1,20 @@
+from mock import Mock
+#from wee_slack import SlackChannel
+
+def test_SlackDMChannel(realish_eventrouter):
+ e = realish_eventrouter
+
+ print e.sc["team"].channels
+ #c = SlackChannel(e, **json.loads(chan))
+ c = e.sc["team"].channels['D3ZEQULHZ']
+
+ 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()
+# assert False