• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python test_helper.get_task_windows函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python test_helper.import_task_file函数代码示例发布时间:2022-05-27
下一篇:
Python test_helper.get_reference函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap