def test_get_page(self, url): page = StyleCleanerService.get_page(url) assert "html" in page
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
def test_style_cleaner(self, page): page = StyleCleanerService._clear_page(page) assert "style=" not in page
def run(self): assert self.url from style_cleaner import StyleCleanerService style_cleaner = StyleCleanerService() self.page = style_cleaner.get_clean_page(url=self.url)