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

    }

    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,

        XCTAssertTrue(capturingHomepageHandler.wasNotifiedFeedLoaded)
    }

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

        XCTAssertFalse(capturingHomepageHandler.wasNotifiedFeedLoaded)
    }

}
