'Test that a child with get a value inherited from a great-grandparent.'

def test_inherited_across_generations(self):

    parent = self.get_a_block(usage_id=self.get_usage_id('course', 'parent'))
    parent.inherited = 'Changed!'
    self.assertEqual(parent.inherited, 'Changed!')
    for child_num in range(10):
        usage_id = self.get_usage_id('vertical', 'child_{}'.format(child_num))
        child = self.get_a_block(usage_id=usage_id)
        child.parent = parent.location
        self.assertEqual(child.inherited, 'Changed!')
