Esempio n. 1
0
 def test_get_page(self, url):
     page = StyleCleanerService.get_page(url)
     assert "html" in page
Esempio n. 2
0
 def test_get_clean_page(self, url):
     page = StyleCleanerService.get_clean_page(url)
     strings = string.split(page, "/n")
     for str in strings:
         assert "style=" not in str
Esempio n. 3
0
 def test_style_cleaner(self, page):
     page = StyleCleanerService._clear_page(page)
     assert "style=" not in page
Esempio n. 4
0
 def test_get_clean_page(self, url):
     page = StyleCleanerService.get_clean_page(url)
     strings = string.split(page, "/n")
     for str in strings:
         assert "style=" not in str
Esempio n. 5
0
 def test_get_page(self, url):
     page = StyleCleanerService.get_page(url)
     assert "html" in page
Esempio n. 6
0
 def test_style_cleaner(self, page):
     page = StyleCleanerService._clear_page(page)
     assert "style=" not in page
Esempio n. 7
0
 def run(self):
     assert self.url
     from style_cleaner import StyleCleanerService
     style_cleaner = StyleCleanerService()
     self.page = style_cleaner.get_clean_page(url=self.url)