authentik.lib.tests.test_utils_reflection

Test Reflection utils

 1"""Test Reflection utils"""
 2
 3from datetime import datetime
 4
 5from django.test import TestCase
 6
 7from authentik.lib.utils.reflection import path_to_class
 8
 9
10class TestReflectionUtils(TestCase):
11    """Test Reflection-utils"""
12
13    def test_path_to_class(self):
14        """Test path_to_class"""
15        self.assertEqual(path_to_class("datetime.datetime"), datetime)
class TestReflectionUtils(django.test.testcases.TestCase):
11class TestReflectionUtils(TestCase):
12    """Test Reflection-utils"""
13
14    def test_path_to_class(self):
15        """Test path_to_class"""
16        self.assertEqual(path_to_class("datetime.datetime"), datetime)

Test Reflection-utils

def test_path_to_class(self):
14    def test_path_to_class(self):
15        """Test path_to_class"""
16        self.assertEqual(path_to_class("datetime.datetime"), datetime)

Test path_to_class