Merge lp://qastaging/~coreygoldberg/selenium-simple-test/assert-url-domain into lp://qastaging/selenium-simple-test
Proposed by
Corey Goldberg
Status: | Merged |
---|---|
Approved by: | Corey Goldberg |
Approved revision: | 371 |
Merged at revision: | 368 |
Proposed branch: | lp://qastaging/~coreygoldberg/selenium-simple-test/assert-url-domain |
Merge into: | lp://qastaging/selenium-simple-test |
Diff against target: |
97 lines (+58/-12) 3 files modified
src/sst/actions.py (+16/-4) src/sst/selftests/assert_urls.py (+42/-0) src/sst/selftests/url_contains.py (+0/-8) |
To merge this branch: | bzr merge lp://qastaging/~coreygoldberg/selenium-simple-test/assert-url-domain |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Leo Arias (community) | code review | Approve | |
Review via email:
|
Commit message
assert_
Description of the change
- added 'assert_
- updated tests for all assert_url* actions
see the new tests in the diff.. they show various assertions of urls, using:
- assert_url
- assert_url_contains
- assert_
I didn't think it was necessary to implement `assert_url_path`, as the same can be achieved using `urlparse` with `assert_url`, or by using `assert_
To post a comment you must log in.
from #u1-reviews:
assert_url_netloc ? or assert_ network_ location? network_ location url_network_ location' is getting too long url_contains( '.*/begin' , regex=True) url_network_ location url_contains( 'http:// .*/begin', regex=True)
elopio, yup.. i'll move the msg inside the if
<elopio> cgoldberg: I like assert_
<elopio> I had no idea what was netloc before you explained it.
<cgoldberg> ah
<elopio> still I wouldn't have know what's network locaation, but a comment on the function will help on that.
<cgoldberg> I'll add to docstring an explanation
i sorta like keeping it under assert_url_* for API organization. but 'assert_
<elopio> cgoldberg: I like long names, so that one doesn't botter me. But as you prefer.
cgoldberg: I think that the expression I will use is assert_
<elopio> it would be nice to add that to the tests.
<cgoldberg> ok.. i think I prefer a longer name in this case... so we can keep it under assert_url. i'll change to .. assert_
elopio, i have almost that same case: assert_
but i'll add your specfic one also
i'll make these changes now and re-push. 1 sec