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')
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")
def test_raw_system_incron(self): ''' Test if it return the contents of the system wide incrontab ''' self.assertEqual(incron.raw_system_incron(), 'salt')