コード例 #1
0
ファイル: test_lib_sbd.py プロジェクト: HideoYamauchi/pcs
 def test_even_num_no_qdevice(self):
     self._set_ret_vals([1, 2], False)
     self.assertTrue(lib_sbd._even_number_of_nodes_and_no_qdevice(
         self.mock_corosync_conf
     ))
コード例 #2
0
ファイル: test_lib_sbd.py プロジェクト: cwjenkins/pcs
 def test_odd_num_qdevice(self):
     self._set_ret_vals([1, 2, 3], True)
     self.assertFalse(lib_sbd._even_number_of_nodes_and_no_qdevice(
         self.mock_corosync_conf
     ))
コード例 #3
0
ファイル: test_lib_sbd.py プロジェクト: HideoYamauchi/pcs
 def test_odd_num_qdevice_plus_one(self):
     self._set_ret_vals([1, 2, 3], True)
     self.assertFalse(lib_sbd._even_number_of_nodes_and_no_qdevice(
         self.mock_corosync_conf, 1
     ))
コード例 #4
0
ファイル: test_sbd.py プロジェクト: vvidic/pcs
 def test_odd_num_no_qdevice_plus_one(self):
     self._set_ret_vals([1, 2, 3], False)
     self.assertTrue(
         lib_sbd._even_number_of_nodes_and_no_qdevice(
             self.mock_corosync_conf, 1))