'When a H2Connection is established it schedules one call to be run as
soon as the reactor has time.'

def test_initiallySchedulesOneDataCall(self):

    reactor = task.Clock()
    a = H2Connection(reactor)
    calls = reactor.getDelayedCalls()
    self.assertEqual(len(calls), 1)
    call = calls[0]
    self.assertTrue(call.active())
    self.assertEqual(call.time, 0)
    self.assertEqual(call.func, a._sendPrioritisedData)
    self.assertEqual(call.args, ())
    self.assertEqual(call.kw, {})
