Commit 3d98a6dd authored by Łukasz Nowak's avatar Łukasz Nowak

Check states of documents.

parent 3b8ea807
......@@ -158,8 +158,12 @@ class TestShaDir(ShaDirMixin, ERP5TypeTestCase):
self.assertEqual(self.key, data_set.getReference())
self.assertEqual('published', data_set.getValidationState())
self.assertEqual(2, self.portal.portal_catalog.countResults(
document_list = data_set.getFollowUpRelatedValueList()
self.assertEqual([self.sha512sum, self.sha512sum], [q.getReference() for q \
in document_list])
self.assertEqual(sorted(['published', 'archived']), sorted([
q.getValidationState() for q in document_list]))
def test_get_information_for_single_data_set(self):
\ No newline at end of file
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment