Commit 3c0ac6da authored by Romain Courteaud's avatar Romain Courteaud

slapos_subscription_request: add some assertions

parent 407b5fcb
......@@ -4,6 +4,8 @@ if REQUEST is not None:
subscription_request = context
portal = context.getPortalObject()
assert subscription_request.getPortalType() == 'Subscription Request'
assert subscription_request.getSimulationState() == 'submitted'
def markHistory(document, comment):
portal_workflow = document.portal_workflow
......
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