mirror of https://github.com/MISP/PyMISP
				
				
				
			
							parent
							
								
									d2f7a840d4
								
							
						
					
					
						commit
						3ee7d8c676
					
				|  | @ -993,8 +993,7 @@ class TestComprehensive(unittest.TestCase): | |||
|         try: | ||||
|             first = self.user_misp_connector.add_event(first) | ||||
|             stix = self.user_misp_connector.search(return_format='stix', eventid=first.id) | ||||
|             found = re.findall('8.8.8.8', stix) | ||||
|             self.assertTrue(found) | ||||
|             self.assertTrue(stix['related_packages'][0]['package']['incidents'][0]['related_indicators']['indicators'][0]['indicator']['observable']['object']['properties']['address_value']['value'], '8.8.8.8') | ||||
|             stix2 = self.user_misp_connector.search(return_format='stix2', eventid=first.id) | ||||
|             json.dumps(stix2, indent=2) | ||||
|             self.assertEqual(stix2['objects'][-1]['pattern'], "[network-traffic:src_ref.type = 'ipv4-addr' AND network-traffic:src_ref.value = '8.8.8.8']") | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Raphaël Vinot
						Raphaël Vinot