ncouture / MockSSH

Mock an SSH server and define all commands it supports (Python, Twisted)
Other
123 stars 23 forks source link

Implement unit tests #5

Open ncouture opened 10 years ago

ncouture commented 10 years ago

We need unit tests.

For starters here are a some unit tests that are also using SSH:

ncouture commented 10 years ago

Added an example unit test, it depends on running the example mock_cisco.py manually.

https://github.com/ncouture/MockSSH/tree/master/tests/test_mock_cisco.py

claudyus commented 9 years ago

My PR https://github.com/ncouture/MockSSH/pull/8 resolve dependencies over running server manually.

ncouture commented 9 years ago

The threadedServer implemented by claudyus is a good way to perform end to end tests for one MockSSH server however only one twisted reactor can run at a time and reactors cannot be restarted.

Test failure by uncommenting the tearDownClass classmethod in https://github.com/ncouture/MockSSH/blob/master/tests/test_mock_F5.py and running the unit tests.

ncouture commented 7 years ago