Beispiel #1
0
 def test_article_version_list_only_published(self):
     "all PUBLISHED versions of an article are returned"
     self.unpublish(self.msid2, version=3)
     expected_published_versions = 2
     avl = logic.article_version_list(self.msid2)
     self.assertEqual(avl.count(), expected_published_versions)
Beispiel #2
0
 def test_article_version_list(self):
     "all versions of an article are returned"
     expected_published_versions = 3
     avl = logic.article_version_list(self.msid2)
     self.assertEqual(avl.count(), expected_published_versions)