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.''')
def test(capsys): expected = 'Robert\nStannis\nRenly' expect_output(capsys, expected)
from hexlet.test import expect_output expect_output('Rhaella Targaryen')
def test(capsys): expected = "\"Khal Drogo's favorite word is \"athjahakar\"\"" expect_output(capsys, expected)
from hexlet.test import expect_output expect_output('125.0\n7500.0')
def test(capsys): expected = '9780262531962' expect_output(capsys, expected)
def test(capsys): index.print_motto() expected = 'Winter is coming' expect_output(capsys, expected)
from hexlet.test import expect_output expect_output( "- Did Joffrey agree?\n- He did. He also said \"I love using \\n\".")
from hexlet.test import expect_output expect_output('-2000')
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)
def test(capsys): expected = 'King Balon the 6th has 102 rooms.' expect_output(capsys, expected)
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!')
from hexlet.test import expect_output expect_output('anneirB')
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)
from hexlet.test import expect_output expect_output('Hello, World!')
from hexlet.test import expect_output expect_output('Tywin Lannister')
def test(capsys): expected = "Hello, World!" expect_output(capsys, expected)
def test2(capsys): index.print_jaimes_line('Farewell, my friend...') expected = 'JAIME: Farewell, my friend...' expect_output(capsys, expected)
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.''')
def test1(capsys): index.print_jaimes_line('hey') expected = 'JAIME: hey' expect_output(capsys, expected)
def test(capsys): expected = '-0.304' expect_output(capsys, expected)
def test(capsys): expected = '125.0\n7500.0' expect_output(capsys, expected)
from hexlet.test import expect_output expect_output('9780262531962')
def test(capsys): expected = '125' expect_output(capsys, expected)
from hexlet.test import expect_output expect_output('0x2a')
from hexlet.test import expect_output expect_output('80')
from hexlet.test import expect_output expect_output('13')
from hexlet.test import expect_output expect_output('Targaryen\n and \nDragon')
from hexlet.test import expect_output expect_output('hodor')
from hexlet.test import expect_output expect_output("\"Khal Drogo's favorite word is \"athjahakar\"\"")