コード例 #1
0
 def setUp(self):
     self.sig_list = []
     for platform_name in get_platform_names():
         sig = __import__('cmfieldguide.cmsdetector.signatures.' + platform_name, 
             fromlist='Signature')
         site = save_as_site_object(Page(sig.Signature.KNOWN_POSITIVE))
         self.sig_list.append(sig.Signature(site))
コード例 #2
0
 def setUp(self):
     self.sig_list = []
     site = save_as_site_object(Page('http://www.google.com'))
     
     for platform_name in get_platform_names():
         sig = __import__('cmfieldguide.cmsdetector.signatures.' + platform_name, 
             fromlist='Signature')
         self.sig_list.append(sig.Signature(site))