mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix empty value preserved test
This commit is contained in:
parent
85997391f1
commit
79cd3831ae
1 changed files with 2 additions and 2 deletions
|
@ -125,8 +125,8 @@ class IniManageTestCase(TestCase):
|
|||
})
|
||||
with salt.utils.fopen(self.tfile.name, 'r') as fp:
|
||||
file_content = fp.read()
|
||||
self.assertIn('\nempty_option = \n', file_content,
|
||||
'empty_option was not preserved')
|
||||
expected = '{0}{1}{0}'.format(os.linesep, 'empty_option = ')
|
||||
self.assertIn(expected, file_content, 'empty_option was not preserved')
|
||||
|
||||
def test_empty_lines_preserved_after_edit(self):
|
||||
ini.set_option(self.tfile.name, {
|
||||
|
|
Loading…
Add table
Reference in a new issue