aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_slackdmchannel.py
blob: 203c4ae82a6fd0185fd1f88acada8c82c0cc4767 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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