#NEWLINE# def test_archive_list( self ) : #NEWLINE# #INDENT# self . init_app ( [ 'archive' , 'list' , 'vault_name' ] ) #NEWLINE# archive_list = [ sentinel . archive_one , sentinel . archive_two ] #NEWLINE# self . cache . get_archive_list . return_value = archive_list #NEWLINE# print_mock = Mock ( ) #NEWLINE# with patch ( '__builtin__.print' , print_mock ) : #NEWLINE# #INDENT# self . app . main ( ) #NEWLINE# #UNINDENT# print_mock . assert_called_once_with ( * archive_list , sep = '\n' )