示例#1
0
def test_seq_to_upper_pathsep():
    cases = [
        ([], ''),
        (['a'], 'A'),
        (['a', 'b'], os.pathsep.join(['A', 'B'])),
        (['a', 'B', 'c'], os.pathsep.join(['A', 'B', 'C'])),
        ]
    for inp, exp in cases:
        obs = seq_to_upper_pathsep(inp)
        assert exp == obs
示例#2
0
def test_seq_to_upper_pathsep(inp, exp):
    obs = seq_to_upper_pathsep(inp)
    assert exp == obs
示例#3
0
文件: test_tools.py 项目: mitnk/xonsh
def test_seq_to_upper_pathsep(inp, exp):
    obs = seq_to_upper_pathsep(inp)
    assert exp == obs