예제 #1
0
def test_set_to_pathsep():
    cases = [
        (set(), ''),
        ({'a'}, 'a'),
        ({'a', 'b'}, os.pathsep.join(['a', 'b'])),
        ({'a', 'b', 'c'}, os.pathsep.join(['a', 'b', 'c'])),
        ]
    for inp, exp in cases:
        obs = set_to_pathsep(inp, sort=(len(inp) > 1))
        assert exp == obs
예제 #2
0
def test_set_to_pathsep(inp, exp):
    obs = set_to_pathsep(inp, sort=(len(inp) > 1))
    assert exp == obs
예제 #3
0
파일: test_tools.py 프로젝트: mitnk/xonsh
def test_set_to_pathsep(inp, exp):
    obs = set_to_pathsep(inp, sort=(len(inp) > 1))
    assert exp == obs