teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0196-sysv-generator-test-Fix-assertion.patch

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