mirror of
https://github.com/systemd/systemd.git
synced 2024-11-30 22:03:41 +08:00
sysv-generator test: Fix assertion
This commit is contained in:
parent
bf74cd6549
commit
230f048566
@ -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', [])
|
||||
|
Loading…
Reference in New Issue
Block a user