Exemplo n.º 1
0
 def test_get_selections(self):
     '''
     Test for Answers to debconf questions for all packages
     '''
     mock = MagicMock(return_value=[])
     with patch.dict(debconfmod.__salt__, {'cmd.run_stdout': mock}):
         with patch.object(debconfmod, '_unpack_lines', mock):
             self.assertEqual(debconfmod.get_selections(False), {})
Exemplo n.º 2
0
 def test_get_selections(self):
     """
     Test for Answers to debconf questions for all packages
     """
     mock = MagicMock(return_value=[])
     with patch.dict(debconfmod.__salt__, {"cmd.run_stdout": mock}):
         with patch.object(debconfmod, "_unpack_lines", mock):
             self.assertEqual(debconfmod.get_selections(False), {})