[systemd-commits] test/sysv-generator-test.py
Martin Pitt
martin at kemper.freedesktop.org
Tue Apr 28 06:45:09 PDT 2015
test/sysv-generator-test.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 230f04856647fcfb07d5658f4b8c1cb3557fa0d8
Author: Alberto Fanjul Alonso <albertofanjul at gmail.com>
Date: Tue Apr 28 15:44:23 2015 +0200
sysv-generator test: Fix assertion
diff --git a/test/sysv-generator-test.py b/test/sysv-generator-test.py
index cf7d467..e74f853 100644
--- a/test/sysv-generator-test.py
+++ b/test/sysv-generator-test.py
@@ -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', [])
More information about the systemd-commits
mailing list