def test_unTLS(self):
        def check(ignored):
            self.assertEqual(
                self.serverFactory.lines,
                UnintelligentProtocol.pretext
            )
            self.assertTrue(self.serverFactory.rawdata,
                            "No encrypted bytes received")
        d = self._runTest(UnintelligentProtocol(),
                          LineCollector(False, self.fillBuffer))
        return d.addCallback(check)
Test for server startTLS not followed by a startTLS in client: the data
dataset/ETHPy150Open twisted/twisted/twisted/test/test_ssl.py/TLSTests.test_unTLS