예제 #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)
예제 #2
0
파일: test.py 프로젝트: Delta-Sierra/PyMISP
 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)