
[英]Python: get itertools.combinations to return progressively larger combinations
[英]How can I make the Unit test itertools.combinations check so that input is randomly selected?
full_name = '姓氏', '名字', 'patronymic', 'email_mobilenumber'
if wrong_input_mob: for id in full_name: selector = '#%s' % id if self.browser.find_elements_by_css_selector(selector): name = {} name[id] = self.mob_incorrect_input(selector)
def mob_incorrect_input(self, selector):
arr = ['higjieurhgfihr', ' ', '98/7654321', '123456789']
combo = self.browser.find_element_by_css_selector(selector).send_keys(' fjijkewrhfr ')
for combo in itertools.combinations(arr, 3):
return combo
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.