当前位置: 首页>>代码示例>>Python>>正文


Python ddt.ddt方法代码示例

本文整理汇总了Python中ddt.ddt方法的典型用法代码示例。如果您正苦于以下问题:Python ddt.ddt方法的具体用法?Python ddt.ddt怎么用?Python ddt.ddt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ddt的用法示例。


在下文中一共展示了ddt.ddt方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_augmented_event

# 需要导入模块: import ddt [as 别名]
# 或者: from ddt import ddt [as 别名]
def test_augmented_event(self):
        # This is not tested with ddt because we need access to self.task.geoip in the input and expected arguments.
        input_line = self.create_event_log_line(**{'ip': self.task.geoip.ip_address_1})
        expected_line = self.create_event_log_line(
            **{'template_name': 'expected_event', 'augmented': {'country_code': self.task.geoip.country_code_1}}
        )
        reducer_output_line = self.task.obfuscate_event_line(input_line)
        self.compare_event_lines(expected_line, reducer_output_line) 
开发者ID:edx,项目名称:edx-analytics-pipeline,代码行数:10,代码来源:test_events_obfuscation.py


注:本文中的ddt.ddt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。