Example #1
0
 def test_version_on_article_page(self):
     self.login()
     self.post_article(TITLE_1, CONTENT_1)
     article_page = self.get_article_page(1)
     self.assertEquals(test_version, get_version(article_page))
Example #2
0
 def test_version_after_posting_article_redirect(self):
     new_article = self.post_article(NEW_TITLE, NEW_CONTENT)
     self.assertEquals(test_version, get_version(new_article))
Example #3
0
 def test_version_on_index_page(self):
     index = self.get_index_page()
     self.assertEquals(test_version, get_version(index))