Ejemplo n.º 1
0
def test_import_string_without_base_module():
    name = 'tests.test_utils.OBJECT'
    assert import_string(name) is OBJECT
Ejemplo n.º 2
0
def test_import_string_with_base_module_dot():
    name = 'test_utils.OBJECT'
    assert import_string(name, base_module='tests.') is OBJECT
Ejemplo n.º 3
0
def test_import_string_with_callable():
    def func():
        return

    assert import_string(func) is func