Fixed test to work on Windows.

This commit is contained in:
Gabe Van Engel 2017-11-07 00:30:48 -08:00
parent 5a5a2dd026
commit b2b8f075b9
No known key found for this signature in database
GPG Key ID: 424CAF57744AFEDA

View File

@ -301,7 +301,7 @@ class FileModuleTest(integration.ModuleCase):
'''
ret = self.minion_run('file.line', self.myfile, 'Goodbye',
mode='insert', after='Hello')
self.assertIn('Hello\n+Goodbye', ret)
self.assertIn('Hello' + os.linesep + '+Goodbye', ret)
if __name__ == '__main__':
from integration import run_tests