'Some server can send a response without any data:
L{_QueryFactory.parseResponse} should catch the error and call the
result errback.'

def test_parseResponseWithoutData(self):

    content = '\n<methodResponse>\n    <params>\n        <param>\n        </param>\n    </params>\n</methodResponse>'
    d = self.queryFactory.deferred
    self.queryFactory.parseResponse(content)
    return self.assertFailure(d, IndexError)
