|
|
|
@ -58,10 +58,14 @@ class TestModules(unittest.TestCase): |
|
|
|
|
response = requests.post(self.url + "query", data=f.read()).json() |
|
|
|
|
assert(response) |
|
|
|
|
|
|
|
|
|
def test_domaintools(self): |
|
|
|
|
query = {'config': {'username': 'test_user', 'api_key': 'test_key'}, 'module': 'domaintools', 'domain': 'domaintools.com'} |
|
|
|
|
response = requests.post(self.url + "query", data=json.dumps(query)).json() |
|
|
|
|
print(response) |
|
|
|
|
#def test_domaintools(self): |
|
|
|
|
# query = {'config': {'username': 'test_user', 'api_key': 'test_key'}, 'module': 'domaintools', 'domain': 'domaintools.com'} |
|
|
|
|
# try: |
|
|
|
|
# response = requests.post(self.url + "query", data=json.dumps(query)).json() |
|
|
|
|
# except: |
|
|
|
|
# pass |
|
|
|
|
# response = requests.post(self.url + "query", data=json.dumps(query)).json() |
|
|
|
|
# print(response) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
|