예제 #1
0
def test_get_py_file_if_possible_with_pyc_file():
    assert get_py_file_if_possible(EXAMPLE_SOURCE + "c") == EXAMPLE_SOURCE
예제 #2
0
def test_get_py_file_if_possible_with_pyc_but_nonexistent_py_file():
    assert get_py_file_if_possible('doesnotexist.pyc') == 'doesnotexist.pyc'
예제 #3
0
def test_get_py_file_if_possible_with_pyc_but_nonexistent_py_file():
    assert get_py_file_if_possible("doesnotexist.pyc") == "doesnotexist.pyc"
예제 #4
0
def test_get_py_file_if_possible_with_pyc_file():
    assert get_py_file_if_possible(EXAMPLE_SOURCE + 'c') == EXAMPLE_SOURCE