def test_pronto_to_raw(self): for args in test_data["test_pronto_ok"]: with self.subTest(): self.assertSequenceEqual(ChuangmiIr.pronto_to_raw(*args["in"]), args["out"]) for args in test_data["test_pronto_exception"]: with self.subTest(), pytest.raises(ChuangmiIrException): ChuangmiIr.pronto_to_raw(*args["in"])
def test_pronto_to_raw(self): for args in test_data['test_pronto_ok']: with self.subTest(): self.assertSequenceEqual(ChuangmiIr.pronto_to_raw(*args['in']), args['out']) for args in test_data['test_pronto_exception']: with self.subTest(): with pytest.raises(ChuangmiIrException): ChuangmiIr.pronto_to_raw(*args['in'])