aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_sendmessage.py
blob: 9446e072949f4bdb273f5cb1c5800040c36fabdf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from __future__ import print_function, unicode_literals

def test_send_message(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