'A client that immediately resets after sending the body causes Twisted
to send no response.'

def test_resetAfterBody(self):

    frameFactory = FrameFactory()
    transport = StringTransport()
    a = H2Connection()
    a.requestFactory = DummyHTTPHandlerProxy
    requestBytes = frameFactory.clientConnectionPreface()
    requestBytes += buildRequestBytes(headers=self.getRequestHeaders, data=[], frameFactory=frameFactory)
    requestBytes += frameFactory.buildRstStreamFrame(streamID=1).serialize()
    a.makeConnection(transport)
    a.dataReceived(requestBytes)
    frames = framesFromBytes(transport.value())
    self.assertEqual(len(frames), 1)
    self.assertNotIn(1, a._streamCleanupCallbacks)
