cad6c42fdd
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
17 lines
408 B
Python
17 lines
408 B
Python
"""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)
|