'Check that creating a lead with a line executes rules on both records.'

def test_20_indirect_line(self):

    lead = self.create_lead(line_ids=[(0, 0, {'name': 'Line'})])
    self.assertEqual(lead.state, 'draft', "Lead    state    should    be    'draft'")
    self.assertEqual(lead.user_id, self.user_demo, 'Responsible    should    change    on    creation    of    Lead    test    line.')
    self.assertEqual(len(lead.line_ids), 1, 'New    test    line    is    not    created')
    self.assertEqual(lead.line_ids.user_id, self.user_demo, 'Responsible    should    be    change    on    creation    of    Lead    test    line.')
