示例#1
0
文件: test_all.py 项目: isodude/ceph
 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())
示例#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())
示例#3
0
 def test_centos(self):
     self.assertEqual('sysvinit', centos.choose_init())