Add test for domaintools

pull/83/head
Raphaël Vinot 2016-12-02 15:29:44 +01:00
parent 50dcc02700
commit 2b020c55ba
1 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,6 @@ import base64
import json
import os
class TestModules(unittest.TestCase):
def setUp(self):
@ -59,5 +58,11 @@ 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)
if __name__ == '__main__':
unittest.main()