def test_get_body_gets_body(self):
        fakeresp = FakeSuccessResponse(['a', 'b'], {})

        d = get_body(fakeresp)
        def _check(res):
            self.failUnlessEqual(res, 'ab')
        d.addCallback(_check)
        return d
    def test_get_body_errs_on_exception(self):
        fakeresp = FakeExceptionResponse(['a', 'b'], {}, 200)

        d = get_body(fakeresp)
        d2 = self.failUnlessFailure(d, Exception)
        return d2
    def test_get_body_errs_on_PDL(self):
        fakeresp = FakePotentialDataLossResponse(['a', 'b'], {}, 200)

        d = get_body(fakeresp)
        d2 = self.failUnlessFailure(d, PotentialDataLoss)
        return d2