Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(63)  |  Call(55)  |  Derive(0)  |  Import(8)

src/l/e/lettuce-HEAD/tests/functional/test_runner.py   lettuce(Download)
from tests.asserts import prepare_stdout
from tests.asserts import assert_stderr_lines
from tests.asserts import assert_stdout_lines
from tests.asserts import assert_stderr_lines_with_traceback
from tests.asserts import assert_stdout_lines_with_traceback
 
    assert_stdout_lines(
        "\n"
        "Feature: Dumb feature                    # tests/functional/output_features/runner_features/first.feature:1\n"
        "  In order to test success               # tests/functional/output_features/runner_features/first.feature:2\n"
 
    assert_stdout_lines(
        "\n"
        "Feature: Dumb feature                    # tests/functional/output_features/many_successful_scenarios/first.feature:1\n"
        "  In order to test success               # tests/functional/output_features/many_successful_scenarios/first.feature:2\n"
 
    assert_stdout_lines(
        "\n"
        "\033[1;37mFeature: Dumb feature                    \033[1;30m# tests/functional/output_features/runner_features/first.feature:1\033[0m\n"
        "\033[1;37m  In order to test success               \033[1;30m# tests/functional/output_features/runner_features/first.feature:2\033[0m\n"
 
    assert_stdout_lines(
        "\n"
        "\033[1;37mFeature: Dumb feature                    \033[1;30m# tests/functional/output_features/many_successful_scenarios/first.feature:1\033[0m\n"
        "\033[1;37m  In order to test success               \033[1;30m# tests/functional/output_features/many_successful_scenarios/first.feature:2\033[0m\n"

src/l/e/lettuce-HEAD/tests/functional/test_behave_as_handling.py   lettuce(Download)
 
from tests.asserts import prepare_stdout
from tests.asserts import assert_stdout_lines
from tests.asserts import assert_stdout_lines_with_traceback
 
def test_simple_behave_as_feature():
    "Basic step.behave_as behaviour is working"
    Runner(path_to_feature('1st_normal_steps'), verbosity=3).run()
    assert_stdout_lines(
        "\n"
def test_simple_tables_behave_as_feature():
    "Basic step.behave_as behaviour is working"
    Runner(path_to_feature('2nd_table_steps'), verbosity=3).run()
    assert_stdout_lines(
        "\n"

src/l/e/lettuce-HEAD/tests/functional/language_specific_features/test_fr.py   lettuce(Download)
from nose.tools import with_setup
from tests.asserts import prepare_stdout
from tests.asserts import assert_stdout_lines
 
from lettuce import Runner
 
    assert_stdout_lines(
        u"\n"
        u"Fonctionnalité: Test complet # tests/functional/language_specific_features/fr/success/dumb.feature:3\n"
        u"  En tant que programmeur    # tests/functional/language_specific_features/fr/success/dumb.feature:4\n"
 
    assert_stdout_lines(
        u"\n"
        u"Fonctionnalité: Test des sorties, avec table        # tests/functional/language_specific_features/fr/success/table.feature:4\n"
        u"  En tant que programmeur                           # tests/functional/language_specific_features/fr/success/table.feature:5\n"
 
    assert_stdout_lines(
        u'\n'
        u'Fonctionnalité: Plan de scénario en français # tests/functional/language_specific_features/fr/success/outlines.feature:4\n'
        u'  En tant que programmeur                    # tests/functional/language_specific_features/fr/success/outlines.feature:5\n'
 
    assert_stdout_lines(
        u'\n'
        u'\033[1;37mFonctionnalité: Plan de scénario en français \033[1;30m# tests/functional/language_specific_features/fr/success/outlines.feature:4\033[0m\n'
        u'\033[1;37m  En tant que programmeur                    \033[1;30m# tests/functional/language_specific_features/fr/success/outlines.feature:5\033[0m\n'

src/l/e/lettuce-HEAD/tests/functional/language_specific_features/test_zh-TW.py   lettuce(Download)
from nose.tools import with_setup
from tests.asserts import prepare_stdout
from tests.asserts import assert_stdout_lines
 
from lettuce import Runner
 
    assert_stdout_lines(
        u"\n"
        u"特性: 簡單測試           # tests/functional/language_specific_features/zh-TW/success/dumb.feature:3\n"
        u"  什麽都不做應該運行成功 # tests/functional/language_specific_features/zh-TW/success/dumb.feature:4\n"
 
    assert_stdout_lines(
        u"\n"
        u"特性: 步驟中包含表格             # tests/functional/language_specific_features/zh-TW/success/table.feature:3\n"
        u"  繁體中文表格步驟的成功測試     # tests/functional/language_specific_features/zh-TW/success/table.feature:4\n"
 
    assert_stdout_lines(
        u"\n"
        u"特性: 中文場景模板           # tests/functional/language_specific_features/zh-TW/success/outlines.feature:3\n"
        u"  中文場景模板圖表測試       # tests/functional/language_specific_features/zh-TW/success/outlines.feature:4\n"
 
    assert_stdout_lines(
        u'\n'
        u"\033[1;37m特性: 中文場景模板           \033[1;30m# tests/functional/language_specific_features/zh-TW/success/outlines.feature:3\033[0m\n"
        u"\033[1;37m  中文場景模板圖表測試       \033[1;30m# tests/functional/language_specific_features/zh-TW/success/outlines.feature:4\033[0m\n"

src/l/e/lettuce-HEAD/tests/functional/language_specific_features/test_zh-CN.py   lettuce(Download)
from nose.tools import with_setup
from tests.asserts import prepare_stdout
from tests.asserts import assert_stdout_lines
 
from lettuce import Runner
 
    assert_stdout_lines(
        u"\n"
        u"特性: 简单测试           # tests/functional/language_specific_features/zh-CN/success/dumb.feature:3\n"
        u"  什么都不做应该运行成功 # tests/functional/language_specific_features/zh-CN/success/dumb.feature:4\n"
 
    assert_stdout_lines(
        u"\n"
        u"特性: 步骤中包含表格             # tests/functional/language_specific_features/zh-CN/success/table.feature:3\n"
        u"  简体中文表格步骤的成功测试     # tests/functional/language_specific_features/zh-CN/success/table.feature:4\n"
 
    assert_stdout_lines(
        u"\n"
        u"特性: 中文场景模板           # tests/functional/language_specific_features/zh-CN/success/outlines.feature:3\n"
        u"  中文场景模板图表测试       # tests/functional/language_specific_features/zh-CN/success/outlines.feature:4\n"
 
    assert_stdout_lines(
        u'\n'
        u"\033[1;37m特性: 中文场景模板           \033[1;30m# tests/functional/language_specific_features/zh-CN/success/outlines.feature:3\033[0m\n"
        u"\033[1;37m  中文场景模板图表测试       \033[1;30m# tests/functional/language_specific_features/zh-CN/success/outlines.feature:4\033[0m\n"

src/l/e/lettuce-HEAD/tests/functional/language_specific_features/test_ru.py   lettuce(Download)
from nose.tools import with_setup
from tests.asserts import prepare_stdout
from tests.asserts import assert_stdout_lines
 
from lettuce import Runner
 
    assert_stdout_lines(
        u'\n'
        u'Функционал: тупая фича                # tests/functional/language_specific_features/ru/success/dumb.feature:3\n'
        u'  Чтобы lettuce был более надежным    # tests/functional/language_specific_features/ru/success/dumb.feature:4\n'
 
    assert_stdout_lines(
        u"\n"
        u"Функционал: фича с табличкой                                     # tests/functional/language_specific_features/ru/success/table.feature:3\n"
        u"  Для того, что бы lettuce был надежным                          # tests/functional/language_specific_features/ru/success/table.feature:4\n"
 
    assert_stdout_lines(
        u'\n'
        u'Функционал: Проверить вывод структурного сценария                                  # tests/functional/language_specific_features/ru/success/outlines.feature:3\n'
        u'  Как программист                                                                  # tests/functional/language_specific_features/ru/success/outlines.feature:4\n'
 
    assert_stdout_lines(
        u'\n'
u'\x1b[1;37m\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b: \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u043e\u0433\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f                                  \x1b[1;30m# tests/functional/language_specific_features/ru/success/outlines.feature:3\x1b[0m\n'
u'\x1b[1;37m  \u041a\u0430\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442                                                                  \x1b[1;30m# tests/functional/language_specific_features/ru/success/outlines.feature:4\x1b[0m\n'

src/l/e/lettuce-HEAD/tests/functional/language_specific_features/test_ptbr.py   lettuce(Download)
from nose.tools import with_setup
from tests.asserts import prepare_stdout
from tests.asserts import assert_stdout_lines
 
from lettuce import Runner
 
    assert_stdout_lines(
        u"\n"
        u"Funcionalidade: feature burra       # tests/functional/language_specific_features/pt-br/success/dumb.feature:3\n"
        u"  Como um programador               # tests/functional/language_specific_features/pt-br/success/dumb.feature:4\n"
 
    assert_stdout_lines(
        u"\n"
        u"Funcionalidade: feature burra, com tabela      # tests/functional/language_specific_features/pt-br/success/table.feature:3\n"
        u"  Como um programador                          # tests/functional/language_specific_features/pt-br/success/table.feature:4\n"
 
    assert_stdout_lines(
        u'\n'
        u'Funcionalidade: outlines em português                                  # tests/functional/language_specific_features/pt-br/success/outlines.feature:3\n'
        u'  Como um programador                                                  # tests/functional/language_specific_features/pt-br/success/outlines.feature:4\n'
 
    assert_stdout_lines(
        u'\n'
        u'\033[1;37mFuncionalidade: outlines em português                                  \033[1;30m# tests/functional/language_specific_features/pt-br/success/outlines.feature:3\033[0m\n'
        u'\033[1;37m  Como um programador                                                  \033[1;30m# tests/functional/language_specific_features/pt-br/success/outlines.feature:4\033[0m\n'

src/l/e/lettuce-HEAD/tests/functional/language_specific_features/test_ja.py   lettuce(Download)
from nose.tools import with_setup
from tests.asserts import prepare_stdout
from tests.asserts import assert_stdout_lines
 
from lettuce import Runner
 
    assert_stdout_lines(
        u"\n"
        u"フィーチャ: ダムフィーチャ           # tests/functional/language_specific_features/ja/success/dumb.feature:3\n"
        u"  テストをグリーンになればテスト成功 # tests/functional/language_specific_features/ja/success/dumb.feature:4\n"
 
    assert_stdout_lines(
        u"\n"
        u"フィーチャ: テーブル記法                     # tests/functional/language_specific_features/ja/success/table.feature:3\n"
        u"  日本語でのテーブル記法がパスするかのテスト # tests/functional/language_specific_features/ja/success/table.feature:4\n"
 
    assert_stdout_lines(
        u"\n"
        u"フィーチャ: アウトラインを日本語で書く           # tests/functional/language_specific_features/ja/success/outlines.feature:3\n"
        u"  図表のテストをパスすること                     # tests/functional/language_specific_features/ja/success/outlines.feature:4\n"
 
    assert_stdout_lines(
        u'\n'
        u"\033[1;37mフィーチャ: アウトラインを日本語で書く           \033[1;30m# tests/functional/language_specific_features/ja/success/outlines.feature:3\033[0m\n"
        u"\033[1;37m  図表のテストをパスすること                     \033[1;30m# tests/functional/language_specific_features/ja/success/outlines.feature:4\033[0m\n"