Exemple #1
0
def test_load_function_no_modulename():
    u.load_function('join')
Exemple #2
0
def test_load_function_no_modulename():
    with pytest.raises(ValueError):
        u.load_function("join")
Exemple #3
0
def test_load_function():
    import os
    assert_equal(u.load_function('os.path.join'), os.path.join)
Exemple #4
0
def test_load_function():
    import os

    assert u.load_function("os.path.join") == os.path.join