diff --git a/libpathod/test.py b/libpathod/test.py index e431be185..ed0ee26af 100644 --- a/libpathod/test.py +++ b/libpathod/test.py @@ -30,7 +30,7 @@ class Daemon: Return some basic info about the remote daemon. """ resp = requests.get("%s/api/info"%self.urlbase, verify=False) - return resp.json + return resp.json() def last_log(self): """ @@ -47,7 +47,7 @@ class Daemon: Return the log buffer as a list of dictionaries. """ resp = requests.get("%s/api/log"%self.urlbase, verify=False) - return resp.json["log"] + return resp.json()["log"] def clear_log(self): """ diff --git a/pathod b/pathod index 09facad42..27e7e040f 100755 --- a/pathod +++ b/pathod @@ -166,7 +166,7 @@ if __name__ == "__main__": group = parser.add_argument_group( - 'Controlling Logging', + 'Controlling Logging', """ Some of these options expand generated values for logging - if you're generating large data, use them with caution. diff --git a/setup.py b/setup.py index 4df247b24..0653ee707 100644 --- a/setup.py +++ b/setup.py @@ -89,5 +89,5 @@ setup( "Topic :: Software Development :: Testing :: Traffic Generation", "Topic :: Internet :: WWW/HTTP", ], - install_requires=['netlib>=0.2.2', "requests>=0.13", "flask"], + install_requires=['netlib>=0.2.2', "requests>=1.0.4", "flask"], )