本文整理汇总了Python中test_helper.get_task_windows函数的典型用法代码示例。如果您正苦于以下问题:Python get_task_windows函数的具体用法?Python get_task_windows怎么用?Python get_task_windows使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_task_windows函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_windows
def test_windows():
windows = get_task_windows()
if "number" in windows[0] and "number" in windows[1]:
passed()
else:
failed("Use % operator")
示例2: test_window
def test_window():
windows = get_task_windows()
if windows[0] == "%d":
passed()
else:
failed("Use %d special symbol")
示例3: test_window1
def test_window1():
windows = get_task_windows()
if windows[1].isdigit():
passed()
else:
failed("Print digit")
示例4: test_value
def test_value():
window = get_task_windows()[0]
if "monty_python.upper()" in window:
passed()
else:
failed("Use upper() method")
示例5: test_ASCII
def test_ASCII():
windows = get_task_windows()
for window in windows:
all_ascii = all(ord(c) < 128 for c in window)
if not all_ascii:
failed("Please, use only english characters for this time.")
return
passed()
示例6: test_is_alpha
def test_is_alpha():
window = get_task_windows()[0]
splitted = window.split()
for s in splitted:
if not s.isalpha():
failed("Please, use only english characters for this time.")
return
passed()
示例7: test_window
def test_window():
window = get_task_windows()[0]
if "from " in window:
passed()
else:
failed("Use from my_module import hello_world")
示例8: test_window
def test_window():
window = get_task_windows()[0]
if "grocery_dict" in window and " in " in window and "fish" in window:
passed()
else:
failed("Use in keyword")
示例9: test_window3
def test_window3():
window = get_task_windows()[1]
if "tmp_var" in window:
passed()
else:
failed("Update a with tmp_var")
示例10: test_window3
def test_window3():
window = get_task_windows()[1]
if "my_module" in window and "hello_world" in window:
passed()
else:
failed("Call hello_world function using my_module.hello_world")
示例11: test_columns
def test_columns():
windows = get_task_windows()
if ":" in windows[0] and ":" in windows[1]:
passed()
else:
failed("Don't forget about column at the end")
示例12: test_monty_python
def test_monty_python():
window = get_task_windows()[0]
if "monty_python" in window:
passed()
else:
failed("Use slicing")
示例13: test_type_used
def test_type_used():
window = get_task_windows()[0]
if "type" in window and "float_number" in window:
passed()
else:
failed("Use type() function")
示例14: test_window
def test_window():
window = get_task_windows()[0]
if ":" in window:
passed()
else:
failed("Don't forget about column at the end")
示例15: test_len
def test_len():
window = get_task_windows()[0]
if "len" in window:
passed()
else:
failed("Use len function to check that tasks is empty")