def test_topical_parents(self): d1, d2 = create_topical_parents_docs() ok_(d2.parents == [d1]) d3 = document(title='Smell accessibility') d3.parent_topic = d2 d3.save() ok_(d3.parents == [d1, d2])