~ubuntu-branches/ubuntu/quantal/openerp6.1/quantal-proposed

« back to all changes in this revision

Viewing changes to openerp/addons/event/test/process/event_draft2cancel.yml

  • Committer: Package Import Robot
  • Author(s): Yolanda Robla
  • Date: 2012-09-20 15:29:00 UTC
  • Revision ID: package-import@ubuntu.com-20120920152900-woyy3yww8z6acmsk
Tags: upstream-6.1-1+dfsg
ImportĀ upstreamĀ versionĀ 6.1-1+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-
 
2
  I want to organize event and its need Minimum 50 Registrations to confirm/start 
 
3
  this Event, but Only 10 registration confirm for this event, I confirm this event. 
 
4
-
 
5
  !python {model: event.event}: |
 
6
    self.button_confirm(cr, uid, [ref("event_1")])
 
7
-
 
8
  Now I cheked for event and It should not be confirm because registrations for 
 
9
  this event is below limit.
 
10
-
 
11
  !assert {model: event.event, id: event_1}:
 
12
    - state == 'confirm', "Event should be confirm."
 
13
-
 
14
  So I cancel this Event
 
15
-
 
16
  !python {model: event.event}: |
 
17
    self.button_cancel(cr, uid, [ref("event_1")])
 
18
-
 
19
  I check event should be cancel.
 
20
-
 
21
  !assert {model: event.event, id: event_1}:
 
22
    - state == 'cancel', "Event should be cancel"