tests: Add MockConnection disconnect test.

This commit is contained in:
Shiz 2014-03-15 15:48:42 +01:00
parent 1ea51fd2f5
commit 41151cee7c
1 changed files with 5 additions and 0 deletions

View File

@ -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