'A slightly more complex tree, with multiple children, some
of which do/don\'t have their own children.'

def test_children_complex(self):

    top = document(title='Parent', save=True)
    c1 = document(title='Child    1', save=True)
    c1.parent_topic = top
    c1.save()
    gc1 = document(title='Child    of    child    1', save=True)
    gc1.parent_topic = c1
    gc1.save()
    c2 = document(title='Child    2', save=True)
    c2.parent_topic = top
    c2.save()
    gc2 = document(title='Child    of    child    2', save=True)
    gc2.parent_topic = c2
    gc2.save()
    gc3 = document(title='Another    child    of    child    2', save=True)
    gc3.parent_topic = c2
    gc3.save()
    ggc1 = document(title='Child    of    the    second    child    of    child    2', save=True)
    ggc1.parent_topic = gc3
    ggc1.save()
    ok_(([c1, gc1, c2, gc2, gc3, ggc1] == top.get_descendants()))
