Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test():
"""vt_query.py test"""
# Execute the worker (unit test)
vt_query = VTQuery(summary=False)
output = vt_query.query_file('eb107c004e6e1bbd3b32ad7961661bbe28a577b0cb5dac4cfd518f786029cb95')
print('\n<<< Unit Test Full>>>')
pprint.pprint(output)
vt_query = VTQuery()
output = vt_query.query_file('4ecf79302ba0439f62e15d0526a297975e6bb32ea25c8c70a608916a609e5a9c')
print('\n<<< Unit Test Summary>>>')
pprint.pprint(output)
# Test queries on domain names
output = vt_query.query_url('amazon.co.uk.security-check.ga')
print('\n<<< Unit Test Domain Names>>>')
pprint.pprint(output)
# Test Cache
output = vt_query.query_file('4ecf79302ba0439f62e15d0526a297975e6bb32ea25c8c70a608916a609e5a9c')
print('\n<<< Unit Test Cache>>>')
def test():
"""vt_query.py test"""
# Execute the worker (unit test)
vt_query = VTQuery(summary=False)
output = vt_query.query_file('eb107c004e6e1bbd3b32ad7961661bbe28a577b0cb5dac4cfd518f786029cb95')
print('\n<<< Unit Test Full>>>')
pprint.pprint(output)
vt_query = VTQuery()
output = vt_query.query_file('4ecf79302ba0439f62e15d0526a297975e6bb32ea25c8c70a608916a609e5a9c')
print('\n<<< Unit Test Summary>>>')
pprint.pprint(output)
# Test queries on domain names
output = vt_query.query_url('amazon.co.uk.security-check.ga')
print('\n<<< Unit Test Domain Names>>>')
pprint.pprint(output)
# Test Cache
output = vt_query.query_file('4ecf79302ba0439f62e15d0526a297975e6bb32ea25c8c70a608916a609e5a9c')
print('\n<<< Unit Test Cache>>>')
pprint.pprint(output)
# Test Size
assert vt_query.size == 2