예제 #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
파일: incron_test.py 프로젝트: DaveQB/salt
 def test_raw_system_incron(self):
     '''
     Test if it return the contents of the system wide incrontab
     '''
     self.assertEqual(incron.raw_system_incron(), 'salt')