From bc4777310a0e695a8993964bec89f7b5bafd5ad4 Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Thu, 2 Feb 2017 23:54:09 -0800 Subject: more tests --- _pytest/test_slackmpdmchannel.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 _pytest/test_slackmpdmchannel.py (limited to '_pytest/test_slackmpdmchannel.py') diff --git a/_pytest/test_slackmpdmchannel.py b/_pytest/test_slackmpdmchannel.py new file mode 100644 index 0000000..a2c6c51 --- /dev/null +++ b/_pytest/test_slackmpdmchannel.py @@ -0,0 +1,20 @@ +from mock import Mock +#from wee_slack import SlackChannel + +def test_SlackMPDMChannel(realish_eventrouter): + e = realish_eventrouter + + print e.sc["team"].channels + #c = SlackChannel(e, **json.loads(chan)) + c = e.sc["team"].channels['G3ZGMF4RZ'] + + 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 -- cgit