Commit 1d648796 authored by Brian May's avatar Brian May

Fix tests

parent 8fad282b
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 ...@@ -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 == [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment