<reponame>sdf611097/py-logger
from . import logger


def test_print_green_color(capsys):
    # arrange
    msg = 'Hi'
    expect_colored_msg = '\x1b[32m {} \x1b[0m\n'.format(msg)

    # action
    logger.green(msg)

    # assert
    out, err = capsys.readouterr()
    assert out == expect_colored_msg

from . import logger


def test_print_green_color(capsys):
    # arrange
    msg = 'Hi'
    expect_colored_msg = '\x1b[32m {} \x1b[0m\n'.format(msg)

    # action
    logger.green(msg)

    # assert
    out, err = capsys.readouterr()
    assert out == expect_colored_msg
# arrange # action # assert