#NEWLINE# def test_get_children( cur , root , nd1 , nd2 , nd3 ) : #NEWLINE# #INDENT# ids = { child . id for child in get_children ( cur , root ) } #NEWLINE# assert ( len ( ids ) == 3 ) #NEWLINE# assert ( cur . id in ids ) #NEWLINE# assert ( nd2 . id in ids ) #NEWLINE# assert ( nd3 . id in ids )