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

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