"""Test Reflection utils"""

from datetime import datetime

from django.test import TestCase

from authentik.lib.utils.reflection import path_to_class


class TestReflectionUtils(TestCase):
    """Test Reflection-utils"""

    def test_path_to_class(self):
        """Test path_to_class"""
        self.assertIsNone(path_to_class(None))
        self.assertEqual(path_to_class("datetime.datetime"), datetime)
