fix: Updated ipasn test following the latest changes on the module

pull/363/head
chrisr3d 2020-01-10 15:12:52 +01:00
parent b3bc533bc3
commit 8db9891c83
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 3 deletions

View File

@ -237,9 +237,7 @@ class TestExpansions(unittest.TestCase):
def test_ipasn(self):
query = {"module": "ipasn", "ip-dst": "1.1.1.1"}
response = self.misp_modules_post(query)
key = list(self.get_values(response)['response'].keys())[0]
entry = self.get_values(response)['response'][key]['asn']
self.assertEqual(entry, '13335')
self.assertEqual(self.get_object(response), 'asn')
def test_macaddess_io(self):
module_name = 'macaddress_io'