def test_str_to_env_path(): cases = [ ('/home/wakka', ['/home/wakka']), ('/home/wakka' + os.pathsep + '/home/jawaka', ['/home/wakka', '/home/jawaka']), ] for inp, exp in cases: obs = str_to_env_path(inp) yield assert_equal, exp, obs
def test_str_to_env_path(): cases = [ ('/home/wakka', ['/home/wakka']), ('/home/wakka' + os.pathsep + '/home/jawaka', ['/home/wakka', '/home/jawaka']), (b'/home/wakka', ['/home/wakka']), ] for inp, exp in cases: obs = str_to_env_path(inp) assert exp == obs.paths
def test_str_to_env_path(inp, exp): obs = str_to_env_path(inp) assert exp == obs.paths