Пример #1
0
def test_find_module_5():
    assert mp.find_module("xmod.nopack") is None
Пример #2
0
def test_find_module_2():
    """Testing sys.path that is empty"""
    assert mp.find_module("xmod", []) is None
Пример #3
0
def test_find_module_4():
    """Testing sys.path that is empty"""
    assert mp.find_module(None) is None
Пример #4
0
def test_find_module_5():
    nt.assert_is_none(mp.find_module("xmod.nopack"))
Пример #5
0
def test_find_module_1():
    modpath = join(TMP_TEST_DIR, "xmod")
    assert mp.find_module("xmod") == modpath
Пример #6
0
def test_find_module_2():
    """Testing sys.path that is empty"""
    nt.assert_is_none(mp.find_module("xmod", []))
Пример #7
0
def test_find_module_4():
    """Testing sys.path that is empty"""
    nt.assert_is_none(mp.find_module(None))
Пример #8
0
def test_find_module_5():
    nt.assert_is_none(mp.find_module("xmod.nopack"))
Пример #9
0
def test_find_module_1():
    modpath = join(TMP_TEST_DIR, "xmod")
    nt.assert_equal(mp.find_module("xmod"), modpath)
Пример #10
0
def test_find_module_2():
    """Testing sys.path that is empty"""
    nt.assert_is_none(mp.find_module("xmod", []))
Пример #11
0
def test_find_module_4():
    """Testing sys.path that is empty"""
    nt.assert_is_none(mp.find_module(None))
Пример #12
0
def test_find_module_1():
    modpath = join(TMP_TEST_DIR, "xmod")
    nt.assert_equal(mp.find_module("xmod"), modpath)
Пример #13
0
def test_find_module_5():
    assert mp.find_module("xmod.nopack") is None
Пример #14
0
def test_find_module_4():
    """Testing sys.path that is empty"""
    assert mp.find_module(None) is None
Пример #15
0
def test_find_module_2():
    """Testing sys.path that is empty"""
    assert mp.find_module("xmod", []) is None
Пример #16
0
def test_find_module_1():
    modpath = join(TMP_TEST_DIR, "xmod")
    assert mp.find_module("xmod") == modpath