def assert_content_length(self, expected_length, page): article = get_articles(page)[0] actual_content = article['content'] self.assertEquals(expected_length, len(actual_content)) return actual_content
def test_article_markdown(self): actual = get_articles(self.article_page)[0]['content'] self.compare_contents(self.expected, actual)