Commit 9b4155bb authored by Romain Courteaud's avatar Romain Courteaud

Test default ticket resource.

parent d0f0cf5d
...@@ -55,6 +55,8 @@ class TestSlapOSPerson_checkToCreateRegularisationRequest(testSlapOSMixin): ...@@ -55,6 +55,8 @@ class TestSlapOSPerson_checkToCreateRegularisationRequest(testSlapOSMixin):
self.assertEquals(ticket.getPortalType(), 'Regularisation Request') self.assertEquals(ticket.getPortalType(), 'Regularisation Request')
self.assertEquals(ticket.getSimulationState(), 'suspended') self.assertEquals(ticket.getSimulationState(), 'suspended')
self.assertEquals(ticket.getSourceProject(), person.getRelativeUrl()) self.assertEquals(ticket.getSourceProject(), person.getRelativeUrl())
self.assertEquals(ticket.getResource(),
'service_module/slapos_crm_acknowledgement')
self.assertEquals(ticket.getTitle(), self.assertEquals(ticket.getTitle(),
'Account regularisation expected for "%s"' % person.getTitle()) 'Account regularisation expected for "%s"' % person.getTitle())
self.assertEquals(ticket.getDestination(), self.assertEquals(ticket.getDestination(),
...@@ -62,6 +64,8 @@ class TestSlapOSPerson_checkToCreateRegularisationRequest(testSlapOSMixin): ...@@ -62,6 +64,8 @@ class TestSlapOSPerson_checkToCreateRegularisationRequest(testSlapOSMixin):
self.assertEquals(ticket.getDestinationDecision(), self.assertEquals(ticket.getDestinationDecision(),
person.getRelativeUrl()) person.getRelativeUrl())
self.assertEquals(event.getPortalType(), 'Mail Message') self.assertEquals(event.getPortalType(), 'Mail Message')
self.assertEquals(event.getResource(),
'service_module/slapos_crm_acknowledgement')
self.assertTrue(event.getStartDate() >= before_date) self.assertTrue(event.getStartDate() >= before_date)
self.assertTrue(event.getStopDate() <= after_date) self.assertTrue(event.getStopDate() <= after_date)
self.assertEquals(event.getTitle(), "Invoice payment requested") self.assertEquals(event.getTitle(), "Invoice payment requested")
......
13 14
\ No newline at end of file \ No newline at end of file
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