diff options
author | Alberto Fanjul Alonso <albertofanjul@gmail.com> | 2015-04-28 15:44:23 +0200 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2015-04-28 15:44:23 +0200 |
commit | 230f04856647fcfb07d5658f4b8c1cb3557fa0d8 (patch) | |
tree | 540496b877c39fd4ec6af0e101ee5b5aee58cbc4 /test/sysv-generator-test.py | |
parent | bf74cd6549903090a62f9ad07033b8ec24ec5828 (diff) |
sysv-generator test: Fix assertion
Diffstat (limited to 'test/sysv-generator-test.py')
-rw-r--r-- | test/sysv-generator-test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sysv-generator-test.py b/test/sysv-generator-test.py index cf7d467368..e74f8533c7 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', []) |