diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-04-12 16:47:43 +0000 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2017-04-12 16:47:43 +0000 |
commit | 95fa084893660b655388604084f082a080f1ba32 (patch) | |
tree | 8c667c21f591572052f6b3a046c1b94712285c40 /_pytest/test_slackchannel.py | |
parent | 01beb42fec5c6dbfc0d8c53ce1de88b48b48f6db (diff) | |
download | wee-slack-95fa084893660b655388604084f082a080f1ba32.tar.gz |
massssssssive merge of the new codebase
Diffstat (limited to '_pytest/test_slackchannel.py')
-rw-r--r-- | _pytest/test_slackchannel.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/_pytest/test_slackchannel.py b/_pytest/test_slackchannel.py new file mode 100644 index 0000000..7d93afc --- /dev/null +++ b/_pytest/test_slackchannel.py @@ -0,0 +1,33 @@ +from mock import Mock +#from wee_slack import SlackChannel + +def test_SlackChannel(realish_eventrouter): + e = realish_eventrouter + + print e.sc["team"].channels + #c = SlackChannel(e, **json.loads(chan)) + c = e.sc["team"].channels['C3ZEQAYN7'] + + 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 "-------" + 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 + #assert False |