#NEWLINE# def test_get( self , mock_registry ) : #NEWLINE# #INDENT# mock_registry . InfrastructureStack . get_by_uuid . return_value = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# handler = infra . InfrastructureStackHandler ( self . ctx ) #NEWLINE# res = handler . get ( 'test_id' ) #NEWLINE# self . assertIsNotNone ( res ) #NEWLINE# mock_registry . InfrastructureStack . get_by_uuid . assert_called_once_with ( self . ctx , 'test_id' )