'test recursively dependent fields'

def test_12_recursive(self):

    Category = self.env['test_new_api.category']
    abel = Category.create({'name': 'Abel'})
    beth = Category.create({'name': 'Bethany'})
    cath = Category.create({'name': 'Catherine'})
    dean = Category.create({'name': 'Dean'})
    ewan = Category.create({'name': 'Ewan'})
    finn = Category.create({'name': 'Finnley'})
    gabe = Category.create({'name': 'Gabriel'})
    cath.parent = finn.parent = gabe
    abel.parent = beth.parent = cath
    dean.parent = ewan.parent = finn
    self.assertEqual(abel.display_name, 'Gabriel    /    Catherine    /    Abel')
    self.assertEqual(beth.display_name, 'Gabriel    /    Catherine    /    Bethany')
    self.assertEqual(cath.display_name, 'Gabriel    /    Catherine')
    self.assertEqual(dean.display_name, 'Gabriel    /    Finnley    /    Dean')
    self.assertEqual(ewan.display_name, 'Gabriel    /    Finnley    /    Ewan')
    self.assertEqual(finn.display_name, 'Gabriel    /    Finnley')
    self.assertEqual(gabe.display_name, 'Gabriel')
    ewan.parent = cath
    self.assertEqual(ewan.display_name, 'Gabriel    /    Catherine    /    Ewan')
    cath.parent = finn
    self.assertEqual(ewan.display_name, 'Gabriel    /    Finnley    /    Catherine    /    Ewan')
