Exemple #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())
 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())
Exemple #3
0
 def test_centos(self):
     self.assertEqual('sysvinit', centos.choose_init())