     }
 
     func loadHomepage(completionHandler: @escaping (InkbunnyHomepageLoadResult) -> Void) {
-        completionHandler(.success)
         let loginURL = URL(string: "https://inkbunny.net/api_login.php")!
         networkAdapter.get(loginURL) { data, _ in
             guard let data = data,

                return
            }

            let searchURL = URL(string: "https://inkbunny.net/api_search.php?sid=\(sid)")!
            self.networkAdapter.get(searchURL, completionHandler: { _, _ in
                completionHandler(.failure)

        XCTAssertTrue(capturingHomepageHandler.wasNotifiedFeedLoaded)
    }

    func testLoginFailsDoesNotNotifyHandlerOfSuccess() {
        let capturingNetworkAdapter = FailingNetworkAdapter()
        let inkbunnyAPI = InkbunnyAPI(networkAdapter: capturingNetworkAdapter)
        let capturingHomepageHandler = CapturingInkbunnyHomepageHandler()
        inkbunnyAPI.loadHomepage(completionHandler: capturingHomepageHandler.verify)

        XCTAssertFalse(capturingHomepageHandler.wasNotifiedFeedLoaded)
    }

}
