def jobCs(no: int, url: str):
     switcher = {
         0: code.isRedirectingToOtherDomain(url),
         1: code.isUsingManyExternalResources(url),
         2: code.isOpenningNewWindow(url),
         3: code.isBlockingRightClick(url),
         4: code.isUsingInceptionBar(url)
     }
     cFeatures[no] = switcher.get(no)
 def testGoogle(self):
     self.assertEqual(
         code.isUsingManyExternalResources('https://google.com'), 0)
 def testGithub(self):
     self.assertEqual(
         code.isUsingManyExternalResources('https://github.com'), 1)