'An HTTP request with no headers will not cause any calls to
L{handleHeader} but will cause L{handleEndHeaders} to be called on
L{HTTPClient} subclasses.'

def test_noHeaders(self):

    c = ClientDriver()
    c.handleHeader = self.ourHandleHeader
    c.handleEndHeaders = self.ourHandleEndHeaders
    c.lineReceived('HTTP/1.0    201')
    c.lineReceived('')
    self.assertFalse(self.handleHeaderCalled)
    self.assertTrue(self.handleEndHeadersCalled)
    self.assertEqual(c.version, 'HTTP/1.0')
    self.assertEqual(c.status, '201')
