Commit 5fa14f6a authored by Łukasz Nowak's avatar Łukasz Nowak

Use state ids, not titles.

parent 8ed9ddfa
......@@ -124,7 +124,7 @@ class TestShaCache(ShaCacheMixin, ERP5TypeTestCase):
transaction.commit()
self.tic()
document = self.portal.portal_catalog.getResultValue(reference=self.key)
self.assertEquals('Published', document.getValidationStateTitle())
self.assertEquals('published', document.getValidationState())
self.postFile()
transaction.commit()
......@@ -134,7 +134,7 @@ class TestShaCache(ShaCacheMixin, ERP5TypeTestCase):
document2 = self.portal.portal_catalog.getResultValue(reference=self.key,
sort_on=(('uid', 'ASC'),))
self.assertEquals('Published', document2.getValidationStateTitle())
self.assertEquals('published', document2.getValidationState())
self.assertEquals('archived', document.getValidationState())
60
\ No newline at end of file
61
\ 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