'Check that a rule is executed recursively by a secondary change.'

def test_12_recursive(self):

    lead = self.create_lead(state='open')
    self.assertEqual(lead.state, 'open')
    self.assertEqual(lead.user_id, self.user_admin)
    partner = self.env.ref('base.res_partner_1')
    lead.write({'partner_id': partner.id})
    self.assertEqual(lead.state, 'draft')
