Split client/server tests

This allows disabling all client tests using a conftest.py file, if for
example #56 gets merged and the server supports more python versions
then the server.

The server side tests are very incomplete.
This commit is contained in:
Brian May 2016-03-16 17:38:33 +11:00
parent 3541e4bdfe
commit d522d1e1bd
6 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
import sshuttle.server
def test__ipmatch():
assert sshuttle.server._ipmatch("1.2.3.4") is not None
assert sshuttle.server._ipmatch("::1") is not None
assert sshuttle.server._ipmatch("42 Example Street, Melbourne") is None