Commit 1d573001 authored by Romain Courteaud's avatar Romain Courteaud

slapos_crm: one more test

parent 87f785c4
...@@ -630,6 +630,17 @@ class TestTicket_createProjectEvent(TestCRMSkinsMixin): ...@@ -630,6 +630,17 @@ class TestTicket_createProjectEvent(TestCRMSkinsMixin):
}]) }])
self.assertEquals(event.getSimulationState(), 'stopped') self.assertEquals(event.getSimulationState(), 'stopped')
def test_Ticket_createProjectEvent_incomingEventWithAttachmentAndNotificationMessage(self):
ticket = self.createUsualTicket()
self.assertRaises(
ValueError,
ticket.Ticket_createProjectEvent,
'foo_title', 'incoming', 'foo portal type',
'foo resource', 'foo text',
notification_message='foo notification reference',
attachment=self.makeImageFileUpload()
)
def test_Ticket_createProjectEvent_outgoingEvent(self): def test_Ticket_createProjectEvent_outgoingEvent(self):
ticket = self.createUsualTicket() ticket = self.createUsualTicket()
event = ticket.Ticket_createProjectEvent( event = ticket.Ticket_createProjectEvent(
......
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