#NEWLINE# def test_set_( self ) : #NEWLINE# #INDENT# '\n        Test for Set answers to debconf questions for a package.\n        ' #NEWLINE# mock = MagicMock ( return_value = None ) #NEWLINE# with patch . object ( os , 'write' , mock ) : #NEWLINE# #INDENT# with patch . object ( os , 'close' , mock ) : #NEWLINE# #INDENT# with patch . object ( debconfmod , '_set_file' , mock ) : #NEWLINE# #INDENT# with patch . object ( os , 'unlink' , self ) : #NEWLINE# #INDENT# self . assertTrue ( debconfmod . set_ ( 'package' , 'question' , 'type' , 'value' ) )