Chapter 4
Creating an Isolated Test Environment with Test Doubles
Section 4
Unittest.mock - Mocking a Network Connection
In this video, we will walk through a simple example of mocking out network connection calls so those network connections aren't actually required in your test environment. - Setup the project for this example - Implement the 1st test case to be able to call the function that uses the HTTP GET library call - Implement the next test case where the function is updated to actually make the HTTP GET library call but have that call be replaced with a mock object so we can verify the inputs and send back an expected response