def METHOD_NAME(self):
    api = self.mock_api(bad_connection=True)
    with pytest.raises(RemoteInitiatedServerError) as excinfo:
        api.remote_pin_test("key", "pin")
    assert "Could not connect!" in str(excinfo.value)