Exemplo n.º 1
0
 def test_execute_value_error(self):
     '''
     Test if it execute Augeas commands
     '''
     ret = {'retval': False,
            'error':
     'Invalid formatted command, see debug log for details: '}
     self.assertEqual(augeas_cfg.execute(None, None, ["set "]), ret)
Exemplo n.º 2
0
 def test_execute_value_error(self):
     '''
     Test if it execute Augeas commands
     '''
     ret = {
         'retval': False,
         'error': 'Invalid formatted command, see debug log for details: '
     }
     self.assertEqual(augeas_cfg.execute(None, None, ["set "]), ret)
Exemplo n.º 3
0
 def test_execute_io_error(self):
     '''
     Test if it execute Augeas commands
     '''
     ret = {'error': 'Command  is not supported (yet)', 'retval': False}
     self.assertEqual(augeas_cfg.execute(None, None, [" "]), ret)
Exemplo n.º 4
0
 def test_execute(self):
     '''
     Test if it execute Augeas commands
     '''
     self.assertEqual(augeas_cfg.execute(), {'retval': True})
Exemplo n.º 5
0
 def test_execute_io_error(self):
     """
     Test if it execute Augeas commands
     """
     ret = {"error": "Command  is not supported (yet)", "retval": False}
     self.assertEqual(augeas_cfg.execute(None, None, [" "]), ret)
Exemplo n.º 6
0
 def test_execute(self):
     """
     Test if it execute Augeas commands
     """
     self.assertEqual(augeas_cfg.execute(), {"retval": True})
Exemplo n.º 7
0
 def test_execute_io_error(self):
     '''
     Test if it execute Augeas commands
     '''
     ret = {'error': 'Command  is not supported (yet)', 'retval': False}
     self.assertEqual(augeas_cfg.execute(None, None, [" "]), ret)
Exemplo n.º 8
0
 def test_execute(self):
     '''
     Test if it execute Augeas commands
     '''
     self.assertEqual(augeas_cfg.execute(), {'retval': True})