 
         fakeSession.lastCompletionHandler?(data, response, nil)
 
-        var passedModel: [Status]?
-        var passedPagination: Pagination?
-        switch result! {
-        case .success(let model, let pagination):
-            passedModel = model
-            passedPagination = pagination
-        default: break
-        }
-
-        XCTAssertEqual(passedModel?.count, 2)
-        XCTAssertNotNil(passedPagination)
+        XCTAssertEqual(result?.value?.count, 2)
+        XCTAssertNotNil(result?.pagination)
     }
 }
 


        fakeSession.lastCompletionHandler?(fakeData, nil, nil)

        var passedError: Error?
        switch result! {
        case .failure(let error): passedError = error
        default: break
        }

        XCTAssertEqual(passedError?.localizedDescription, ClientError.malformedJSON.localizedDescription)
    }

    func testDataTaskCompletionBlockWithMastodonError() {

        var passedError: Error?

        client.run(Timelines.home()) { result in
            passedError = result.error
        }

        XCTAssertEqual(passedError?.localizedDescription, ClientError.malformedURL.localizedDescription)
