From 7b1f1e89912a7fb23082549844a0dbed7b920b8f Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Mon, 14 Mar 2016 22:56:32 +0100 Subject: [PATCH] ceph-detect-init: add test for squeeze Since we return 'sysvinit' for wheezy and squeeze only, make sure we are testing both of these. Signed-off-by: Nathan Cutler --- src/ceph-detect-init/tests/test_all.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ceph-detect-init/tests/test_all.py b/src/ceph-detect-init/tests/test_all.py index c13b12b7364d4..22cff5bca9360 100644 --- a/src/ceph-detect-init/tests/test_all.py +++ b/src/ceph-detect-init/tests/test_all.py @@ -48,6 +48,10 @@ class TestCephDetectInit(testtools.TestCase): distro='debian', codename='wheezy'): self.assertEqual('sysvinit', debian.choose_init()) + with mock.patch.multiple('ceph_detect_init.debian', + distro='debian', + codename='squeeze'): + self.assertEqual('sysvinit', debian.choose_init()) with mock.patch.multiple('ceph_detect_init.debian', distro='debian', codename='jessie'): -- 2.39.5