We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5bef7a commit 2848d1aCopy full SHA for 2848d1a
1 file changed
tests/test_channel.py
@@ -1,11 +1,23 @@
1
from slackclient._channel import Channel
2
import pytest
3
4
+def mock_channel():
5
+ ''' Returns a Channel object for testing. '''
6
-def test_Channel(channel):
7
+def test_channel(channel):
8
assert type(channel) == Channel
9
10
+def test_channel_eq(channel):
11
+ channel = Channel(
12
+ 'test-server',
13
+ 'test-channel',
14
+ 'C12345678',
15
+ )
16
+ assert channel == 'test-channel'
17
+ assert channel == '#test-channel'
18
+ assert channel == 'C12345678'
19
+ assert (channel == 'foo') is False
20
21
@pytest.mark.xfail
-def test_Channel_send_message(channel):
22
+def test_channel_send_message(channel):
23
channel.send_message('hi')
0 commit comments