Пример #1
0
def test_get_init_4():
    """get_init can't find __init__ in empty testdir"""
    assert mp.get_init(TMP_TEST_DIR) is None
Пример #2
0
def test_get_init_2():
    """See if get_init can find __init__.pyw in this testdir"""
    with make_tempfile(join(TMP_TEST_DIR, "__init__.pyw")):
        assert mp.get_init(TMP_TEST_DIR)
Пример #3
0
def test_get_init_3():
    """get_init can't find __init__.pyc in this testdir"""
    with make_tempfile(join(TMP_TEST_DIR, "__init__.pyc")):
        assert mp.get_init(TMP_TEST_DIR) is None
Пример #4
0
def test_get_init_4():
    """get_init can't find __init__ in empty testdir"""
    nt.assert_is_none(mp.get_init(TMP_TEST_DIR))
Пример #5
0
def test_get_init_3():
    """get_init can't find __init__.pyc in this testdir"""
    with make_tempfile(join(TMP_TEST_DIR, "__init__.pyc")):
        nt.assert_is_none(mp.get_init(TMP_TEST_DIR))
Пример #6
0
def test_get_init_2():
    """See if get_init can find __init__.pyw in this testdir"""
    with make_tempfile(join(TMP_TEST_DIR, "__init__.pyw")):
        assert mp.get_init(TMP_TEST_DIR)
Пример #7
0
def test_get_init_4():
    """get_init can't find __init__ in empty testdir"""
    nt.assert_is_none(mp.get_init(TMP_TEST_DIR))
Пример #8
0
def test_get_init_4():
    """get_init can't find __init__ in empty testdir"""
    assert mp.get_init(TMP_TEST_DIR) is None