Commit 9073364e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

now we need to commit transaction so that clearCache in Distributed Ram Cache takes in effect.

parent 0b9e1d64
......@@ -191,6 +191,7 @@ class TestPreferences(PropertySheetTestCase):
site.edit(
preferred_accounting_transaction_simulation_state_list=
['stopped', 'delivered'])
self.commit()
self.assertEquals(list(pref_tool.getPreference(
'preferred_accounting_transaction_simulation_state_list')),
list(site.getPreferredAccountingTransactionSimulationStateList()))
......@@ -205,12 +206,14 @@ class TestPreferences(PropertySheetTestCase):
group.edit(
preferred_accounting_transaction_simulation_state_list=['draft'])
self.commit()
self.assertEquals(list(pref_tool.getPreference(
'preferred_accounting_transaction_simulation_state_list')),
list(group.getPreferredAccountingTransactionSimulationStateList()))
person1.edit(preferred_accounting_transaction_simulation_state_list=
['cancelled'])
self.commit()
self.assertEquals(list(pref_tool.getPreference(
'preferred_accounting_transaction_simulation_state_list')),
list(person1.getPreferredAccountingTransactionSimulationStateList()))
......
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