Make Test Makes Sure System Output Hello World Q43899551
![dev for nick [C:UsersBentePycharmProjectsSoftware dev for nick] - ..section1lesson1task1testst _init_-py X fe test_t](https://media.cheggcdn.com/media/701/701b44c7-f599-4eea-82ca-637d486e6497/image.png)

how do i make a test that makes sure the system outputis hello world.
dev for nick [C:UsersBentePycharmProjectsSoftware dev for nick] – ..section1lesson1task1testst _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:UsersBent cachedir: .pytest_cache rootdir: C:UsersBentePycharmProjectsSoftware dev for nicksection1lesson1task1te collecting collected 1 item [100%] test_task.py::TestClass::test_one FAILED test task.py:4 (TestClass.test_one) <_pytest.capture.EncodedFile object at 0x0000019310737128> != hello world PE Show transcribed image text dev for nick [C:UsersBentePycharmProjectsSoftware dev for nick] – ..section1lesson1task1testst _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:UsersBent cachedir: .pytest_cache rootdir: C:UsersBentePycharmProjectsSoftware dev for nicksection1lesson1task1te collecting collected 1 item [100%] test_task.py::TestClass::test_one FAILED test task.py:4 (TestClass.test_one) != hello world PE
Expert Answer
Answer to how do i make a test that makes sure the system output is hello world….
OR