def jobUs(no: int, url: str):
     switcher = {
         0: url_and_domain.isDomainHavingNonAscii(url),
         1: url_and_domain.isShortUrl(url),
         2: url_and_domain.isDeepLevelSubdomain(url),
         3: url_and_domain.isLowAlexaRank(url),
         4: url_and_domain.isNotIndexedByGoogle(url)
     }
     uFeatures[no] = switcher.get(no)
 def jobUD(url: str):
     uFeatures[0] = url_and_domain.isDomainHavingNonAscii(url)
     uFeatures[1] = url_and_domain.isShortUrl(url)
     uFeatures[2] = url_and_domain.isDeepLevelSubdomain(url)
     uFeatures[3] = url_and_domain.isLowAlexaRank(url)
     uFeatures[4] = url_and_domain.isNotIndexedByGoogle(url)
 def testYoutube(self):
     self.assertEqual(url_and_domain.isLowAlexaRank('https://youtube.com'),
                      2)
 def testGoogle(self):
     self.assertEqual(url_and_domain.isLowAlexaRank('https://google.com'),
                      1)