'A request sent to a HTTP/2 connection fires the
L{http.Request.notifyFinish} callback with a L{None} value.'

def test_notifyOnCompleteRequest(self):

    connection = H2Connection()
    connection.requestFactory = NotifyingRequestFactory(DummyHTTPHandler)
    (_, transport) = self.connectAndReceive(connection, self.getRequestHeaders, [])
    deferreds = connection.requestFactory.results
    self.assertEqual(len(deferreds), 1)
    def validate(result):
        self.assertIsNone(result)
    d = deferreds[0]
    d.addCallback(validate)
    cleanupCallback = connection._streamCleanupCallbacks[1]
    return defer.gatherResults([d, cleanupCallback])
