803fb7
From 20f5864e8f41957f6ed4b94a0199253a821b8c40 Mon Sep 17 00:00:00 2001
803fb7
From: Alberto Fanjul Alonso <albertofanjul@gmail.com>
803fb7
Date: Tue, 28 Apr 2015 15:44:23 +0200
803fb7
Subject: [PATCH] sysv-generator test: Fix assertion
803fb7
803fb7
(cherry picked from commit 230f04856647fcfb07d5658f4b8c1cb3557fa0d8)
803fb7
803fb7
Cherry-picked from: 230f048
803fb7
Resolves: #1222517
803fb7
---
803fb7
 test/sysv-generator-test.py | 4 ++--
803fb7
 1 file changed, 2 insertions(+), 2 deletions(-)
803fb7
803fb7
diff --git a/test/sysv-generator-test.py b/test/sysv-generator-test.py
803fb7
index 09f5c0176..509899e0a 100644
803fb7
--- a/test/sysv-generator-test.py
803fb7
+++ b/test/sysv-generator-test.py
803fb7
@@ -323,7 +323,7 @@ class SysvGeneratorTest(unittest.TestCase):
803fb7
         self.add_sysv('foo.sh', {'Provides': 'foo bar'})
803fb7
         err, results = self.run_generator()
803fb7
         # ensure we don't try to create a symlink to itself
803fb7
-        self.assertNotIn(err, 'itself')
803fb7
+        self.assertNotIn('itself', err)
803fb7
         self.assertEqual(list(results), ['foo.service'])
803fb7
         self.assertEqual(results['foo.service'].get('Unit', 'Description'),
803fb7
                          'LSB: test foo service')
803fb7
@@ -361,7 +361,7 @@ class SysvGeneratorTest(unittest.TestCase):
803fb7
                          ['foo.bak.service', 'foo.old.service', 'foo.service'])
803fb7
 
803fb7
         # ensure we don't try to create a symlink to itself
803fb7
-        self.assertNotIn(err, 'itself')
803fb7
+        self.assertNotIn('itself', err)
803fb7
 
803fb7
         self.assert_enabled('foo.service', [2, 3, 4, 5])
803fb7
         self.assert_enabled('foo.bak.service', [])