Skip to content

Commit

Permalink
add unit test for complete code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Aug 21, 2016
1 parent ad64b54 commit 36bb48c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,11 @@ def test_send(self):
packet.MESSAGE)
self.assertEqual(mock_socket.send.call_args[0][0].data, 'hello')

def test_send_unknown_socket(self):
s = server.Server()
# just ensure no exceptions are raised
s.send('foo', 'hello')

def test_get_request(self):
s = server.Server()
mock_socket = self._get_mock_socket()
Expand Down

0 comments on commit 36bb48c

Please sign in to comment.