Question: how do i make a test that makes sure the system output is hello world. dev for nick [C:UsersBentePycharmProjectsSoftware dev for nick] - ..section1lesson1task1testst _init_-py

![output is hello world. dev for nick [C:\Users\Bente\PycharmProjects\Software dev for nick] -](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66ef52552f812_21266ef525483d80.jpg)
how do i make a test that makes sure the system output is hello world.
dev for nick [C:\Users\Bente\PycharmProjects\Software dev for nick] - ..\section1\lesson1\task1\tests\t _init_-py X fe test_task.py x A Helloworld.answer.py x e task.py x import pytest import sys 2. 3. class TestClass: def test_one(self): X = "hello world" assert sys.stdout == X Tests failed: 1 of 1 test - 1 ms Launching pytest with arguments C:/Users/Bente/PycharmProjects/Software dev for nick/s ==== test session starts ==========: platform win32 -- Python 3.7.3, pytest-5.3.3, py-1.8.1, pluggy-0.13.1 -- C:\Users\Bent cachedir: .pytest_cache rootdir: C:\Users\Bente\PycharmProjects\Software dev for nick\section1\lesson1\task1\te collecting collected 1 item [100%] test_task.py::TestClass::test_one FAILED test task.py:4 (TestClass.test_one) <_pytest.capture.encodedfile object at> != hello world PE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
