示例#1
0
    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"])
示例#2
0
    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'])