'Check that a rule is executed whenever a field is recomputed and the
context contains the target field'

def test_11_recomputed_field(self):

    partner = self.env.ref('base.res_partner_1')
    lead = self.create_lead(state='draft', partner_id=partner.id)
    self.assertFalse(lead.deadline, 'There    should    not    be    a    deadline    defined')
    lead.write({'priority': True, 'user_id': self.user_admin.id})
    self.assertTrue(lead.deadline, 'Deadline    should    be    defined')
    self.assertTrue(lead.is_assigned_to_admin, 'Lead    should    be    assigned    to    admin')
