#NEWLINE# def test_get_children( self ) : #NEWLINE# #INDENT# self . test_dt . create_node ( '/a' . encode ( 'utf8' ) , 'test_data_a' . encode ( 'utf8' ) ) #NEWLINE# self . test_dt . create_node ( '/b' . encode ( 'utf8' ) , 'test_data_b' . encode ( 'utf8' ) ) #NEWLINE# children = self . test_dt . get_children ( '/' . encode ( 'utf8' ) ) #NEWLINE# children . sort ( ) #NEWLINE# assert ( [ 'a' , 'b' ] == self ) #NEWLINE# pytest . raises ( datatree . NoNodeException , self . test_dt . get_children , '/c' . encode ( 'utf8' ) ) #NEWLINE# pytest . raises ( datatree . NoNodeException , self . test_dt . get_children , '/a/c' . encode ( 'utf8' ) )