def test_processor(self): oob_processor = OutOfBandProcessor() self.assertIsNotNone(oob_processor) self.assertIsNone(oob_processor._xml) oob_content = ET.fromstring("<something>process</something>") oob_processor.parse_oob_xml(oob_content) self.assertIsNotNone(oob_processor._xml) with self.assertRaises(NotImplementedError): oob_processor.execute_oob_command(self._client_context) with self.assertRaises(NotImplementedError): oob_processor.process_out_of_bounds(self._client_context, oob_content)
def test_processor(self): oob_processor = OutOfBandProcessor() self.assertIsNotNone(oob_processor) self.assertIsNone(oob_processor._xml) oob_content = ET.fromstring("<something>process</something>") oob_processor.parse_oob_xml(oob_content) self.assertIsNotNone(oob_processor._xml) self.assertEqual("", oob_processor.execute_oob_command(self._client_context)) self.assertEqual("", oob_processor.process_out_of_bounds(self._client_context, oob_content))