本文整理汇总了Python中test_helper.get_task_windows函数的典型用法代码示例。如果您正苦于以下问题:Python get_task_windows函数的具体用法?Python get_task_windows怎么用?Python get_task_windows使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_task_windows函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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")
开发者ID:cscenter,项目名称:EDIDE,代码行数:7,代码来源:tests.py
示例2: test_window
def test_window():
windows = get_task_windows()
if windows[0] == "%d":
passed()
else:
failed("Use %d special symbol")
开发者ID:cscenter,项目名称:EDIDE,代码行数:7,代码来源:tests.py
示例3: test_window1
def test_window1():
windows = get_task_windows()
if windows[1].isdigit():
passed()
else:
failed("Print digit")
开发者ID:cscenter,项目名称:EDIDE,代码行数:7,代码来源:tests.py
示例4: test_value
def test_value():
window = get_task_windows()[0]
if "monty_python.upper()" in window:
passed()
else:
failed("Use upper() method")
开发者ID:cscenter,项目名称:EDIDE,代码行数:7,代码来源:tests.py
示例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()
开发者ID:dot-Sean,项目名称:pycharm-courses,代码行数:8,代码来源:tests.py
示例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()
开发者ID:dot-Sean,项目名称:pycharm-courses,代码行数:9,代码来源:tests.py
示例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")
开发者ID:cscenter,项目名称:EDIDE,代码行数:6,代码来源:tests.py
示例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")
开发者ID:cscenter,项目名称:EDIDE,代码行数:6,代码来源:tests.py
示例9: test_window3
def test_window3():
window = get_task_windows()[1]
if "tmp_var" in window:
passed()
else:
failed("Update a with tmp_var")
开发者ID:cscenter,项目名称:EDIDE,代码行数:6,代码来源:tests.py
示例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")
开发者ID:cscenter,项目名称:EDIDE,代码行数:6,代码来源:tests.py
示例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")
开发者ID:cscenter,项目名称:EDIDE,代码行数:6,代码来源:tests.py
示例12: test_monty_python
def test_monty_python():
window = get_task_windows()[0]
if "monty_python" in window:
passed()
else:
failed("Use slicing")
开发者ID:cscenter,项目名称:EDIDE,代码行数:6,代码来源:tests.py
示例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")
开发者ID:dot-Sean,项目名称:pycharm-courses,代码行数:6,代码来源:tests.py
示例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")
开发者ID:cscenter,项目名称:EDIDE,代码行数:6,代码来源:tests.py
示例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")
开发者ID:cscenter,项目名称:EDIDE,代码行数:6,代码来源:tests.py
示例16: test_window1
def test_window1():
window = get_task_windows()[0]
if "my_module" in window:
passed()
else:
failed("Import module my_module")
开发者ID:cscenter,项目名称:EDIDE,代码行数:6,代码来源:tests.py
示例17: test_window2
def test_window2():
window = get_task_windows()[1]
if "else" in window:
passed()
else:
failed("Use else keyword")
开发者ID:cscenter,项目名称:EDIDE,代码行数:6,代码来源:tests.py
示例18: test_window
def test_window():
window = get_task_windows()[0]
if ">" in window and ">=" not in window:
passed()
else:
failed("Use > operator")
开发者ID:dot-Sean,项目名称:pycharm-courses,代码行数:6,代码来源:tests.py
示例19: test_window1
def test_window1():
window = get_task_windows()[0]
if "John" in window and "==" in window and "if " in window:
passed()
else:
failed("Use if keyword")
开发者ID:cscenter,项目名称:EDIDE,代码行数:6,代码来源:tests.py
示例20: test_window
def test_window():
window = get_task_windows()[0]
if "name" in window and "John" in window and "and" in window and "23" in window:
passed()
else:
failed("Use and keyword and != operator")
开发者ID:dot-Sean,项目名称:pycharm-courses,代码行数:6,代码来源:tests.py
注:本文中的test_helper.get_task_windows函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论