'Test for server and client startTLS: client should received data both
before and after the startTLS.'

def test_TLS(self):

    def check(ignore):
        self.assertEqual(self.serverFactory.lines, (UnintelligentProtocol.pretext + UnintelligentProtocol.posttext))
    d = self._runTest(UnintelligentProtocol(), LineCollector(True, self.fillBuffer))
    return d.addCallback(check)
