예제 #1
0
from hexlet.test import expect_output

expect_output('''Hello, Joffrey!
Here is important information about your account security.
We couldn't verify you mother's maiden name.''')
예제 #2
0
def test(capsys):
    expected = 'Robert\nStannis\nRenly'
    expect_output(capsys, expected)
예제 #3
0
from hexlet.test import expect_output

expect_output('Rhaella Targaryen')
예제 #4
0
def test(capsys):
    expected = "\"Khal Drogo's favorite word is \"athjahakar\"\""
    expect_output(capsys, expected)
예제 #5
0
from hexlet.test import expect_output

expect_output('125.0\n7500.0')
예제 #6
0
def test(capsys):
    expected = '9780262531962'
    expect_output(capsys, expected)
예제 #7
0
def test(capsys):
    index.print_motto()
    expected = 'Winter is coming'
    expect_output(capsys, expected)
예제 #8
0
from hexlet.test import expect_output

expect_output(
    "- Did Joffrey agree?\n- He did. He also said \"I love using \\n\".")
예제 #9
0
from hexlet.test import expect_output

expect_output('-2000')
예제 #10
0
from hexlet.test import TestEnv, expect_output

with TestEnv() as env:
    fun = env.expect_defined('print_seq')
    with expect_output('0-0-0-0-0-'):
        fun('0-', 5)
예제 #11
0
def test(capsys):
    expected = 'King Balon the 6th has 102 rooms.'
    expect_output(capsys, expected)
예제 #12
0
from hexlet.test import TestEnv, expect_output

with TestEnv() as env:
    fun = env.expect_defined('print_jaimes_line')

    with expect_output('JAIME: Farewell, my friend...'):
        fun('Farewell, my friend...')

    with expect_output('JAIME: attack!'):
        fun('attack!')
예제 #13
0
from hexlet.test import expect_output

expect_output('anneirB')
예제 #14
0
def test(capsys):
    expected = '''Hello, Joffrey!
Here is important information about your account security.
We couldn't verify you mother's maiden name.'''
    expect_output(capsys, expected)
예제 #15
0
from hexlet.test import expect_output

expect_output('Hello, World!')
예제 #16
0
from hexlet.test import expect_output

expect_output('Tywin Lannister')
예제 #17
0
def test(capsys):
    expected = "Hello, World!"
    expect_output(capsys, expected)
예제 #18
0
def test2(capsys):
    index.print_jaimes_line('Farewell, my friend...')
    expected = 'JAIME: Farewell, my friend...'
    expect_output(capsys, expected)
예제 #19
0
from hexlet.test import expect_output

expect_output('''Lannister, Targaryen, Baratheon, Stark, Tyrell...
they're all just spokes on a wheel.
This one's on top, then that one's on top, and on and on it spins,
crushing those on the ground.''')
예제 #20
0
def test1(capsys):
    index.print_jaimes_line('hey')
    expected = 'JAIME: hey'
    expect_output(capsys, expected)
예제 #21
0
def test(capsys):
    expected = '-0.304'
    expect_output(capsys, expected)
예제 #22
0
def test(capsys):
    expected = '125.0\n7500.0'
    expect_output(capsys, expected)
예제 #23
0
from hexlet.test import expect_output

expect_output('9780262531962')
예제 #24
0
def test(capsys):
    expected = '125'
    expect_output(capsys, expected)
예제 #25
0
from hexlet.test import expect_output

expect_output('0x2a')
예제 #26
0
from hexlet.test import expect_output

expect_output('80')
예제 #27
0
from hexlet.test import expect_output

expect_output('13')
예제 #28
0
from hexlet.test import expect_output

expect_output('Targaryen\n and \nDragon')
예제 #29
0
from hexlet.test import expect_output

expect_output('hodor')
예제 #30
0
from hexlet.test import expect_output

expect_output("\"Khal Drogo's favorite word is \"athjahakar\"\"")