mirror of https://github.com/Shizmob/pydle.git
tests: Add MockConnection disconnect test.
This commit is contained in:
parent
1ea51fd2f5
commit
41151cee7c
|
@ -61,6 +61,11 @@ def test_mock_connection_connect():
|
|||
assert conn.connected
|
||||
assert serv.connection is conn
|
||||
|
||||
def test_mock_connection_disconnect():
|
||||
serv = Mock()
|
||||
conn = MockConnection(mock_server=serv)
|
||||
|
||||
conn.connect()
|
||||
conn.disconnect()
|
||||
assert not conn.connected
|
||||
|
||||
|
|
Loading…
Reference in New Issue