Example #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.''')
Example #2
0
def test(capsys):
    expected = 'Robert\nStannis\nRenly'
    expect_output(capsys, expected)
Example #3
0
from hexlet.test import expect_output

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

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

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

expect_output('-2000')
Example #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)
Example #11
0
def test(capsys):
    expected = 'King Balon the 6th has 102 rooms.'
    expect_output(capsys, expected)
Example #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!')
Example #13
0
from hexlet.test import expect_output

expect_output('anneirB')
Example #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)
Example #15
0
from hexlet.test import expect_output

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

expect_output('Tywin Lannister')
Example #17
0
def test(capsys):
    expected = "Hello, World!"
    expect_output(capsys, expected)
Example #18
0
def test2(capsys):
    index.print_jaimes_line('Farewell, my friend...')
    expected = 'JAIME: Farewell, my friend...'
    expect_output(capsys, expected)
Example #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.''')
Example #20
0
def test1(capsys):
    index.print_jaimes_line('hey')
    expected = 'JAIME: hey'
    expect_output(capsys, expected)
Example #21
0
def test(capsys):
    expected = '-0.304'
    expect_output(capsys, expected)
Example #22
0
def test(capsys):
    expected = '125.0\n7500.0'
    expect_output(capsys, expected)
Example #23
0
from hexlet.test import expect_output

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

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

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

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

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

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

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