mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-06-11 04:16:47 +02:00
Fix tests
This commit is contained in:
parent
8fad282bfd
commit
1d64879613
@ -1,3 +1,4 @@
|
|||||||
|
import os
|
||||||
import io
|
import io
|
||||||
import socket
|
import socket
|
||||||
import sshuttle.server
|
import sshuttle.server
|
||||||
@ -34,8 +35,12 @@ Destination Gateway Genmask Flags MSS Window irtt Iface
|
|||||||
|
|
||||||
routes = sshuttle.server._list_routes()
|
routes = sshuttle.server._list_routes()
|
||||||
|
|
||||||
|
env = {
|
||||||
|
'PATH': os.environ['PATH'],
|
||||||
|
'LC_ALL': "C",
|
||||||
|
}
|
||||||
assert mock_popen.mock_calls == [
|
assert mock_popen.mock_calls == [
|
||||||
call(['netstat', '-rn'], stdout=-1),
|
call(['netstat', '-rn'], stdout=-1, env=env),
|
||||||
call().wait()
|
call().wait()
|
||||||
]
|
]
|
||||||
assert routes == [
|
assert routes == [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user