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