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

- extend test by checking acknowledgement in even module with its simulation state

 - add myself to blame list
 - update copyright's year


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27947 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d72fbdd2
##############################################################################
# -*- coding: utf8 -*-
# Copyright (c) 2007 Nexedi SA and Contributors. All Rights Reserved.
# Copyright (c) 2009 Nexedi SA and Contributors. All Rights Reserved.
# Sebastien Robin <seb@nexedi.com>
# Łukasz Nowak <luke@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -109,8 +110,14 @@ class TestAcknowledgementTool(ERP5TypeTestCase):
event_acknowledgement_list = getEventAcknowlegementList()
self.assertEqual(0, len(event_acknowledgement_list))
# We should have one acknowledgement in the event module
# We should have one acknowledgement in the event module for seb
acknowledgement_list = module.searchFolder(portal_type='Acknowledgement',
destination = person.getRelativeUrl())
self.assertEqual(1, len(acknowledgement_list))
acknowledgement = acknowledgement_list[0].getObject()
# and acknowledgement is delivered
self.assertEqual(acknowledgement.getSimulationState(), 'delivered')
def test_suite():
......
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