[tests] allow testing for alternative values

This commit is contained in:
Mike Fährmann
2024-09-29 19:16:18 +02:00
parent a937b72034
commit 53ae5e3fd8

View File

@@ -235,6 +235,8 @@ class TestExtractorResults(unittest.TestCase):
self.assertIsInstance(value, test, msg=path)
elif isinstance(test, range):
self.assertRange(value, test, msg=path)
elif isinstance(test, set):
self.assertIn(value, test, msg=path)
elif isinstance(test, list):
subtest = False
for idx, item in enumerate(test):