woob.browser.tests.url
¶
-
class
woob.browser.tests.url.
MyMockBrowser
(*args, **kwargs)¶ Bases:
woob.browser.browsers.PagesBrowser
Accept any arguments, necessary for AbstractBrowser __new__ override.
AbstractBrowser, in its overridden __new__, removes itself from class hierarchy so its __new__ is called only once. In python 3, default (object) __new__ is then used for next instantiations but it’s a slot/”fixed” version supporting only one argument (type to instanciate).
-
BASEURL
= 'http://woob.tech/'¶
-
urlIsHere
= <woob.browser.url.URL object>¶
-
urlIsHereDifKlass
= <woob.browser.url.URL object>¶
-
urlNotRegWithoutHttp
= <woob.browser.url.URL object>¶
-
urlNotRegex
= <woob.browser.url.URL object>¶
-
urlParams
= <woob.browser.url.URL object>¶
-
urlRegWithoutHttp
= <woob.browser.url.URL object>¶
-
urlRegex
= <woob.browser.url.URL object>¶
-
urlSameParams
= <woob.browser.url.URL object>¶
-
urlValue
= <woob.browser.url.URL object>¶
-
-
class
woob.browser.tests.url.
MyMockBrowserWithoutBrowser
¶ Bases:
object
-
BASEURL
= 'http://woob.tech/'¶
-
url
= <woob.browser.url.URL object>¶
-
-
class
woob.browser.tests.url.
MyMockPage
(*args, **kwargs)¶ Bases:
woob.browser.pages.Page
Accept any arguments, necessary for AbstractPage __new__ override.
AbstractPage, in its overridden __new__, removes itself from class hierarchy so its __new__ is called only once. In python 3, default (object) __new__ is then used for next instantiations but it’s a slot/”fixed” version supporting only one argument (type to instanciate).
-
class
woob.browser.tests.url.
URLTest
(methodName='runTest')¶ Bases:
unittest.case.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
setUp
()¶ Hook method for setting up the test fixture before exercising it.
-
test_build_nominal_case
()¶
-
test_build_urlParams_KO_missedparams
()¶
-
test_build_urlParams_KO_moreparams
()¶
-
test_build_urlParams_OK
()¶
-
test_build_urlSameParams_OK
()¶
-
test_ishere_klass_none
()¶
-
test_match_base_none_browser_none
()¶
-
test_match_base_not_none_browser_none
()¶
-
test_match_url_pasregex_baseurl
()¶
-
test_match_url_regex_baseurl
()¶
-
test_match_url_without_http
()¶
-
test_match_url_without_http_fail
()¶
-