Beispiel #1
0
def EndsWithPython_Python2Paths_test():
    python_paths = [
        'python', '/usr/bin/python2.6', '/home/user/.pyenv/shims/python2.7',
        r'C:\Python26\python.exe'
    ]

    for path in python_paths:
        ok_(EndsWithPython(path))
Beispiel #2
0
def EndsWithPython_NotPython2Paths_test():
    not_python_paths = [
        '/opt/local/bin/vim',
        r'C:\Program Files\Vim\vim74\gvim.exe',
        '/usr/bin/python3',
        '/home/user/.pyenv/shims/python3',
    ]

    for path in not_python_paths:
        ok_(not EndsWithPython(path))
Beispiel #3
0
def EndsWithPython_Bad(path):
    ok_(not EndsWithPython(path))
Beispiel #4
0
def EndsWithPython_Good(path):
    ok_(EndsWithPython(path))