#NEWLINE# @ mock . patch . object ( vm_utils , '_get_all_vdis_in_sr' ) #NEWLINE# def test_child_vhds_defaults( self , mock_get_all ) : #NEWLINE# #INDENT# mock_get_all . return_value = self . all_vdis #NEWLINE# result = vm_utils . _child_vhds ( 'session' , 'sr_ref' , [ 'my-uuid' ] ) #NEWLINE# self . assertJsonEqual ( [ 'uuid-child' , 'uuid-child-snap' ] , result )