Example #1
0
 def test_check_vtoc_signature_returns_false_with_no_sig(self):
     self.m_subp.side_effect = iter(
         [util.ProcessExecutionError(stdout="", stderr="", exit_code=1)])
     self.assertFalse(block.check_vtoc_signature(self.blockdev))
Example #2
0
 def test_check_vtoc_signature_finds_vtoc_returns_true(self):
     self.m_subp.side_effect = iter([("vtoc.....ok", "")])
     self.assertTrue(block.check_vtoc_signature(self.blockdev))