Exemplo n.º 1
0
 def setUp(self):
     self.url = 'http://test-site.com'
     self.path = tempfile.mkdtemp()
     self.file_name = 'index.html'
     self.utx = cr.SubPage(self.url, self.url, self.path, self.file_name)
     self.source = six.StringIO(html)
     self.w = wp.WebPage()
Exemplo n.º 2
0
 def setUp(self):
     self.p = wp.WebPage()
     self.url = 'http://test-site.com'
     self.path = tempfile.mkdtemp()
     self.source = six.StringIO(html)
     self.file_name = 'index.html'
     self.utx = urls.URLTransformer(self.url, self.url, self.path, self.file_name)
Exemplo n.º 3
0
 def setUp(self):
     self.w = wp.WebPage()
     self.url = 'http://webpage2.com'
     self.path = str(tempfile.mkdtemp())
     self.source = six.StringIO(html_2)
     self.file_name = 'index.html'
     self.utx = urls.URLTransformer(self.url, self.url, self.path, self.file_name)
     self.w.set_source(self.source)
     self.w.utx = self.utx
     self.w.parse()