fix: [tests] check if the version is a substring as PyMISP might contain sub version

pull/835/head
Alexandre Dulaunoy 2022-03-09 12:38:56 +01:00
parent 03dc22f959
commit 94a65c578a
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 1 additions and 1 deletions

View File

@ -2033,7 +2033,7 @@ class TestComprehensive(unittest.TestCase):
self.assertIn(typ, remote_types)
def test_versions(self):
self.assertEqual(self.user_misp_connector.version, self.user_misp_connector.pymisp_version_master)
self.assertIn(self.user_misp_connector.version, self.user_misp_connector.pymisp_version_master)
self.assertEqual(self.user_misp_connector.misp_instance_version['version'],
self.user_misp_connector.misp_instance_version_master['version'])