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