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