'Test initial creation of company/contact pair where contact address gets copied to
company'

def test_30_res_partner_first_contact_sync(self):

    res_partner = self.env['res.partner']
    ironshield = res_partner.browse(res_partner.name_create('IronShield')[0])
    self.assertFalse(ironshield.is_company, 'Partners    are    not    companies    by    default')
    self.assertEqual(ironshield.type, 'contact', 'Default    type    must    be    "contact"')
    ironshield.write({'type': 'contact'})
    p1 = res_partner.create({'name': 'Isen    Hardearth', 'street': 'Strongarm    Avenue,    12', 'parent_id': ironshield.id})
    self.assertEquals(p1.type, 'contact', 'Default    type    must    be    "contact",    not    the    copied    parent    type')
    self.assertEqual(ironshield.street, p1.street, 'Address    fields    should    be    copied    to    company')
