本文整理汇总了Python中okcupyd.User.children方法的典型用法代码示例。如果您正苦于以下问题:Python User.children方法的具体用法?Python User.children怎么用?Python User.children使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类okcupyd.User
的用法示例。
在下文中一共展示了User.children方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_children_detail
# 需要导入模块: from okcupyd import User [as 别名]
# 或者: from okcupyd.User import children [as 别名]
def test_children_detail(vcr_live_sleep):
details = User().profile.details
details.children = None
vcr_live_sleep(sleep_time)
assert details.children == None
vcr_live_sleep(sleep_time)
details.children = u"has a kid, but doesn't want more"
vcr_live_sleep(sleep_time)
assert details.children == u"Has a kid, but doesn't want more"
vcr_live_sleep(sleep_time)
kids_string = u"Doesn't have kids, and doesn't want any"
details.children = kids_string
vcr_live_sleep(sleep_time)
assert details.children == kids_string
vcr_live_sleep(sleep_time)
kids_string = u"Doesn't have kids, but might want them"
details.children = kids_string
vcr_live_sleep(sleep_time)
assert details.children == kids_string
vcr_live_sleep(sleep_time)
details.children = 'Has kids'
vcr_live_sleep(sleep_time)
assert details.children == 'Has kids'