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)
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)