'A new record is created and goes from states \'open\' to \'done\' via the
other states (open, pending and cancel). We have a rule with:
- precondition: the record is in "open"
- postcondition: that the record is "done".
If the state goes from \'open\' to \'done\' the responsible is changed.
If those two conditions aren\'t verified, the responsible remains the same.'

def test_03_check_from_draft_to_done_without_steps(self):

    lead = self.create_lead(state='open')
    self.assertEqual(lead.state, 'open', "Lead    state    should    be    'open'")
    self.assertEqual(lead.user_id, self.user_admin, "Responsible    should    not    change    on    creation    of    Lead    with    state    'open'.")
    lead.write({'state': 'done'})
    self.assertEqual(lead.state, 'done', "Lead    state    should    be    'done'")
    self.assertEqual(lead.user_id, self.user_demo, "Responsible    should    be    change    on    write    of    Lead    with    state    from    'open'    to    'done'.")
