Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: recipe_modules/url/tests/join.py

Issue 2868333004: Add URL recipe module from "depot_tools". (Closed)
Patch Set: fix/texst urllib methods, remove non_step Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2017 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed under the Apache License, Version 2.0
3 # that can be found in the LICENSE file.
4
5 DEPS = [
6 'step',
7 'url',
8 ]
9
10
11 def RunSteps(api):
12 api.step('step1',
13 ['/bin/echo', api.url.join('foo', 'bar', 'baz')])
14 api.step('step2',
15 ['/bin/echo', api.url.join('foo/', '/bar/', '/baz')])
16 api.step('step3',
17 ['/bin/echo', api.url.join('//foo/', '//bar//', '//baz//')])
18 api.step('step4',
19 ['/bin/echo', api.url.join('//foo/bar//', '//baz//')])
20
21
22 def GenTests(api):
23 yield api.test('basic')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698