def test_ddt_data_object():
"""
Test not using value if non-trivial arguments
"""
@ddt
class Mytest(object):
@data(object())
def test_object(self, val):
pass
assert_is_not_none(getattr(Mytest, 'test_object_1'))
评论列表
文章目录