Merge branch 'master' into master-2

# Conflicts:
#	LICENSE
This commit is contained in:
stubbfel
2015-03-27 00:06:28 +01:00
parent 8f42134415
commit 7cf755493c
29 changed files with 669 additions and 0 deletions

17
example/runwebserver.py Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env python3
__author__ = 'dev'
from fake_services.service.webservice.fake_web_server_manager import FakeWebServerManager
config = {
"/1/a/3/foo/bar.php":
[
{
"response_content_path": "cgi-bin/testA.html"
}
]
}
server = FakeWebServerManager(server_port=80, requests_config=config)
server.start_server()
#server.stop_server()

11
example/setips.py Normal file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env python3
__author__ = 'dev'
import fake_services.utility.network.ip_address_manager as ip
# set ips
ip.add_ip_addresses(["1.1.1.1", "2.2.2.2"], "eth0")
# unset ips
#ip.remove_ip_addresses(["1.1.1.1", "2.2.2.2"], "eth0")