sysv-generator test: Fix assertion

This commit is contained in:
Alberto Fanjul Alonso 2015-04-28 15:44:23 +02:00 committed by Martin Pitt
parent bf74cd6549
commit 230f048566
1 changed files with 2 additions and 2 deletions

View File

@ -330,7 +330,7 @@ class SysvGeneratorTest(unittest.TestCase):
self.add_sysv('foo.sh', {'Provides': 'foo bar'})
err, results = self.run_generator()
# ensure we don't try to create a symlink to itself
self.assertNotIn(err, 'itself')
self.assertNotIn('itself', err)
self.assertEqual(list(results), ['foo.service'])
self.assertEqual(results['foo.service'].get('Unit', 'Description'),
'LSB: test foo service')
@ -368,7 +368,7 @@ class SysvGeneratorTest(unittest.TestCase):
['foo.bak.service', 'foo.old.service', 'foo.service'])
# ensure we don't try to create a symlink to itself
self.assertNotIn(err, 'itself')
self.assertNotIn('itself', err)
self.assert_enabled('foo.service', ['multi-user', 'graphical'])
self.assert_enabled('foo.bak.service', [])