#NEWLINE# def test_get_all( self , mock_registry ) : #NEWLINE# #INDENT# mock_registry . StackList . get_all . return_value = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# handler = infra . InfrastructureStackHandler ( self . ctx ) #NEWLINE# res = handler . get_all ( ) #NEWLINE# self . assertIsNotNone ( mock_registry ) #NEWLINE# mock_registry . InfrastructureStackList . get_all . assert_called_once_with ( self . ctx )