def test_load_function_no_modulename(): u.load_function('join')
def test_load_function_no_modulename(): with pytest.raises(ValueError): u.load_function("join")
def test_load_function(): import os assert_equal(u.load_function('os.path.join'), os.path.join)
def test_load_function(): import os assert u.load_function("os.path.join") == os.path.join