Commit 48dfdc40 authored by Romain Courteaud's avatar Romain Courteaud

Test calls bang multiple time.

parent 068b7d66
......@@ -66,19 +66,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
sequence['computer_reference'],
sequence['computer_partition_reference'])
slap_computer_partition.bang(self.bang_message)
sequence.edit(expected_bang_count=1)
def stepProcessSoftwareInstanceList(self, sequence, **kw):
S0 = self.portal.portal_catalog.getResultValue(uid=sequence['S0_uid'])
S0.startComputerPartition()
S1 = self.portal.portal_catalog.getResultValue(uid=sequence['S1_uid'])
S1.stopComputerPartition()
S2 = self.portal.portal_catalog.getResultValue(uid=sequence['S2_uid'])
S2.stopComputerPartition()
S3 = self.portal.portal_catalog.getResultValue(uid=sequence['S3_uid'])
S3.stopComputerPartition()
S4 = self.portal.portal_catalog.getResultValue(uid=sequence['S4_uid'])
S4.stopComputerPartition()
sequence.edit(expected_bang_count=sequence.get('expected_bang_count', 0) + 1)
def stepSetCurrentSoftwareInstanceS1(self, sequence, **kw):
S1 = self.portal.portal_catalog.getResultValue(uid=sequence['S1_uid'])
......@@ -166,8 +154,6 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
SlapLogout
LoginDefaultUser
ProcessSoftwareInstanceList
Tic
SetCurrentSoftwareInstanceS1
Logout
......@@ -189,8 +175,6 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
SlapLogout
LoginDefaultUser
ProcessSoftwareInstanceList
Tic
SetCurrentSoftwareInstanceS3
Logout
......@@ -224,7 +208,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
slap_computer = self.slap.registerComputer(
sequence['computer_reference'])
slap_computer.bang(self.bang_message)
sequence.edit(expected_bang_count=5)
sequence.edit(expected_bang_count=sequence.get('expected_bang_count', 0) + 5)
def stepCheckComputerBangMessage(self, sequence, **kw):
computer = self.portal.portal_catalog.getResultValue(
......
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