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
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
def test_env_path_add(left, right, exp): obs = left + right assert is_env_path(obs) assert exp == obs
def test_is_env_path(inp, exp): obs = is_env_path(inp) assert exp == obs