Exemplo n.º 1
0
 def test_recommended_pymisp_version(self):
     response = self.misp.get_recommended_api_version()
     recommended_version_tup = tuple(
         int(x) for x in response['version'].split('.'))
     pymisp_version_tup = tuple(int(x) for x in __version__.split('.'))[:3]
     self.assertEqual(recommended_version_tup, pymisp_version_tup)
Exemplo n.º 2
0
 def test_recommended_pymisp_version(self):
     response = self.misp.get_recommended_api_version()
     recommended_version_tup = tuple(int(x) for x in response['version'].split('.'))
     pymisp_version_tup = tuple(int(x) for x in __version__.split('.'))[:3]
     self.assertEqual(recommended_version_tup, pymisp_version_tup)