#NEWLINE# @ patch ( 'salt.modules.aliases.__parse_aliases' , MagicMock ( return_value = mock_alias ) ) #NEWLINE# def test_list_aliases( self ) : #NEWLINE# #INDENT# '\n        Tests the return of a file containing one alias\n        ' #NEWLINE# ret = { #NEWLINE# #INDENT# 'foo' : 'bar@example.com' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( aliases . list_aliases ( ) , self )