aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_sendmessage.py
diff options
context:
space:
mode:
Diffstat (limited to '_pytest/test_sendmessage.py')
-rw-r--r--_pytest/test_sendmessage.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/_pytest/test_sendmessage.py b/_pytest/test_sendmessage.py
new file mode 100644
index 0000000..a87942d
--- /dev/null
+++ b/_pytest/test_sendmessage.py
@@ -0,0 +1,21 @@
+
+def test_send_message(monkeypatch, realish_eventrouter, mock_websocket):
+ e = realish_eventrouter
+
+ t = e.teams.keys()[0]
+ #u = e.teams[t].users.keys()[0]
+
+ #user = e.teams[t].users[u]
+ #print user
+
+ socket = mock_websocket
+ e.teams[t].ws = socket
+
+ c = e.teams[t].channels.keys()[0]
+
+ channel = e.teams[t].channels[c]
+ channel.send_message('asdf')
+
+ print c
+
+ #assert False