diff --git a/apigatewayauth/tests/test_openapi.py b/apigatewayauth/tests/test_openapi.py
new file mode 100644
index 0000000000000000000000000000000000000000..4aaec4dced3e5e3f7156d9e1f08d50432331cc83
--- /dev/null
+++ b/apigatewayauth/tests/test_openapi.py
@@ -0,0 +1,24 @@
+from django.test import TestCase
+
+from apigatewayauth.openapi import any_api_service_security_method_with_scopes
+
+
+class OpenAPITestCase(TestCase):
+
+    def test_any_api_service_security_method_with_scopes(self):
+        """
+        Test that the service definitions are returned for a given set of scopes.
+
+        """
+
+        self.assertListEqual(
+            any_api_service_security_method_with_scopes('read', 'write', 'admin'),
+            [
+                {
+                    'API Service OAuth2 Client Credentials': ['read', 'write', 'admin']
+                },
+                {
+                    'API Service OAuth2 Access Code': ['read', 'write', 'admin']
+                }
+            ]
+        )