Commit 9eedba99 authored by Gabriel Monnerat's avatar Gabriel Monnerat

juntar os testes because the sequence of steps are the same. I will only join...

juntar os testes because the sequence of steps are the same. I will only join the steps to check the states of Sale Packing Lists because is only the part that is different.
parent 8356cc6f
...@@ -5081,7 +5081,7 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -5081,7 +5081,7 @@ class TestVifibSlapWebService(testVifibMixin):
Logout Logout
""" """
def test_SlaveInstance_request_destroy_from_SoftwareInstance(self): def test_SlaveInstance_call_destroy_from_SoftwareInstance(self):
""" """
Check that the Slave Instance will be stopped correctly when Check that the Slave Instance will be stopped correctly when
a Software Instance is destroyed a Software Instance is destroyed
...@@ -5091,30 +5091,15 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -5091,30 +5091,15 @@ class TestVifibSlapWebService(testVifibMixin):
LoginTestVifibCustomer LoginTestVifibCustomer
RequestDestroySoftwareInstanceFromCurrentComputerPartition RequestDestroySoftwareInstanceFromCurrentComputerPartition
Tic Tic
SlapLoginSoftwareInstanceFromCurrentSoftwareInstance
SoftwareInstanceDestroyed
Tic
SetDeliveryLineAmountEqualOne SetDeliveryLineAmountEqualOne
CheckComputerPartitionInstanceHostingSalePackingListStopped CheckComputerPartitionInstanceHostingSalePackingListStopped
CheckComputerPartitionInstanceCleanupSalePackingListDelivered CheckComputerPartitionInstanceCleanupSalePackingListConfirmed
Logout
"""
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SlaveInstance_call_requestDestroy_from_SoftwareInstance(self): SlapLoginSoftwareInstanceFromCurrentSoftwareInstance
""" SoftwareInstanceDestroyed
Check that the Slave Instance will be stopped correctly when
a Software Instance is destroyed
"""
sequence_list = SequenceList()
sequence_string = self.prepare_started_slave_instance_sequence_string + """
LoginTestVifibCustomer
RequestDestroySoftwareInstanceFromCurrentComputerPartition
Tic Tic
SetDeliveryLineAmountEqualOne
CheckComputerPartitionInstanceHostingSalePackingListStopped CheckComputerPartitionInstanceHostingSalePackingListStopped
CheckComputerPartitionInstanceCleanupSalePackingListConfirmed CheckComputerPartitionInstanceCleanupSalePackingListDelivered
Logout Logout
""" """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
......
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