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

 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] -

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!