示例#1
0
def test_is_env_path():
    cases = [
        ('/home/wakka', False),
        (['/home/jawaka'], True),
    ]
    for inp, exp in cases:
        obs = is_env_path(inp)
        yield assert_equal, exp, obs
示例#2
0
def test_is_env_path():
    cases = [
        ('/home/wakka', False),
        (['/home/jawaka'], True),
        ]
    for inp, exp in cases:
        obs = is_env_path(inp)
        yield assert_equal, exp, obs
示例#3
0
def test_is_env_path():
    cases = [
        ('/home/wakka', False),
        (['/home/jawaka'], False),
        (EnvPath(['/home/jawaka']), True),
        (EnvPath(['jawaka']), True),
        (EnvPath(b'jawaka:wakka'), True),
        ]
    for inp, exp in cases:
        obs = is_env_path(inp)
        assert exp == obs
示例#4
0
def test_env_path_add(left, right, exp):
    obs = left + right
    assert is_env_path(obs)
    assert exp == obs
示例#5
0
def test_is_env_path(inp, exp):
    obs = is_env_path(inp)
    assert exp == obs
示例#6
0
文件: test_tools.py 项目: mitnk/xonsh
def test_env_path_add(left, right, exp):
    obs = left + right
    assert is_env_path(obs)
    assert exp == obs
示例#7
0
文件: test_tools.py 项目: mitnk/xonsh
def test_is_env_path(inp, exp):
    obs = is_env_path(inp)
    assert exp == obs