Esempio n. 1
0
 def test_centos(self):
     with mock.patch('ceph_detect_init.centos.release',
                     '7.0'):
         self.assertEqual('systemd', centos.choose_init())
     self.assertEqual('sysvinit', centos.choose_init())
Esempio n. 2
0
 def test_centos(self):
     with mock.patch('ceph_detect_init.centos.release', '7.0'):
         self.assertEqual('systemd', centos.choose_init())
     self.assertEqual('sysvinit', centos.choose_init())
Esempio n. 3
0
 def test_centos(self):
     self.assertEqual('sysvinit', centos.choose_init())