kyu_5.extract_the_domain_name_from_url package
Submodules
kyu_5.extract_the_domain_name_from_url.extract_domain_from_url module
Extract the domain name from a URL.
Created by Egor Kostan. GitHub: https://github.com/ikostan
kyu_5.extract_the_domain_name_from_url.test_domain_name module
Test for -> ‘domain_name’ function.
returns domain name from given URL string. Created by Egor Kostan. GitHub: https://github.com/ikostan
- class kyu_5.extract_the_domain_name_from_url.test_domain_name.DomainNameTestCase(methodName='runTest')[source]
Bases:
TestCaseTesting domain_name function.
- _classSetupFailed = False
- _class_cleanups = []
- test_domain_name = None
- test_domain_name_0_http_google_com(**kw)
domain_name function testing [with url=’http://google.com’, expected=’google’].
Assert that ‘domain_name’ function returns domain name from given URL string. :return:
- test_domain_name_1_http_google_co_jp(**kw)
domain_name function testing [with url=’http://google.co.jp’, expected=’google’].
Assert that ‘domain_name’ function returns domain name from given URL string. :return:
- test_domain_name_2_www_xakep_ru(**kw)
domain_name function testing [with url=’www.xakep.ru’, expected=’xakep’].
Assert that ‘domain_name’ function returns domain name from given URL string. :return:
- test_domain_name_3_https_youtube_com(**kw)
domain_name function testing [with url=’https://youtube.com’, expected=’youtube’].
Assert that ‘domain_name’ function returns domain name from given URL string. :return:
Module contents
Extract the domain name from a URL.