diff --git a/tests/test_modules.py b/tests/test_modules.py
index <HASH>..<HASH> 100644
--- a/tests/test_modules.py
+++ b/tests/test_modules.py
@@ -54,7 +54,11 @@ def make_operation_tests(arg):
                     )) or []
                 except Exception as e:
                     if allowed_exception:
-                        if e.__class__.__name__ != allowed_exception['name']:
+                        allowed_exception_names = allowed_exception.get('names')
+                        if not allowed_exception_names:
+                            allowed_exception_names = [allowed_exception['name']]
+
+                        if e.__class__.__name__ not in allowed_exception_names:
                             print('Wrong execption raised!')
                             raise
Allow multiple exception types to be raised in a test.