Commit df633a7a authored by Łukasz Nowak's avatar Łukasz Nowak

Prove that user with bad balance cannot request slave.

parent 13447bcb
...@@ -109,6 +109,33 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin): ...@@ -109,6 +109,33 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_negative_person_balance_request_slave(self):
"""Locked person can not request
"""
sequence_list = SequenceList()
sequence_string = \
self.prepare_install_requested_computer_partition_sequence_string + \
self.register_new_user_sequence_string + \
self.lock_user_string() + '\
LoginWebUser \
PersonRequestSlaveInstance \
Tic \
Logout \
\
LoginDefaultUser \
SoftwareInstanceSaleOrderConfirmRaisesUnauthorized \
ConfirmOrderedSaleOrderActiveSense \
Tic \
AssertNoComputerPartition \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def stepCreateSmallInvoiceWebUser(self, sequence, **kw): def stepCreateSmallInvoiceWebUser(self, sequence, **kw):
person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue(sequence[ person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue(sequence[
'web_user']) 'web_user'])
......
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