#NEWLINE# @ patch ( 'sys.stdout' , new_callable = StringIO ) #NEWLINE# def test_do_archive_list_none( self , out ) : #NEWLINE# #INDENT# registry = Mock ( ) #NEWLINE# registry . cache . _for_adf . return_value = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# registry . prefs = self . prefs #NEWLINE# cli = self . _makeit ( out , self . prefs ) #NEWLINE# cli . onecmd ( 'list' ) #NEWLINE# self . assertEqual ( 'No available archives.\n' , out . getvalue ( ) )