示例#1
0
 def test_raw_system_incron(self):
     '''
     Test if it return the contents of the system wide incrontab
     '''
     with patch('salt.modules.incron._read_file',
                MagicMock(return_value='salt')):
         self.assertEqual(incron.raw_system_incron(), 'salt')
示例#2
0
 def test_raw_system_incron(self):
     """
     Test if it return the contents of the system wide incrontab
     """
     with patch("salt.modules.incron._read_file",
                MagicMock(return_value="salt")):
         self.assertEqual(incron.raw_system_incron(), "salt")
示例#3
0
 def test_raw_system_incron(self):
     '''
     Test if it return the contents of the system wide incrontab
     '''
     self.assertEqual(incron.raw_system_incron(), 'salt')
示例#4
0
 def test_raw_system_incron(self):
     '''
     Test if it return the contents of the system wide incrontab
     '''
     self.assertEqual(incron.raw_system_incron(), 'salt')