#NEWLINE# def test_get_static_parent_without_method_parent_present( self ) : #NEWLINE# #INDENT# root = Mock ( resources = [ Mock ( path = '/stories' , method = 'options' ) , Mock ( path = '/stories' , method = 'post' ) ] ) #NEWLINE# parent = Mock ( path = '/stories' , method = 'get' , root = root ) #NEWLINE# resource = Mock ( path = '/{id}' ) #NEWLINE# resource . parent = parent #NEWLINE# res = utils . get_static_parent ( self ) #NEWLINE# assert ( res . method == 'get' ) #NEWLINE# assert ( res . path == '/stories' )