#NEWLINE# def test_unTLS( self ) : #NEWLINE# #INDENT# '\n        Test for server startTLS not followed by a startTLS in client: the data\n        received after server startTLS should be received as raw.\n        ' #NEWLINE# def check( ignored ) : #NEWLINE# #INDENT# self . assertEqual ( self . serverFactory . lines , UnintelligentProtocol . pretext ) #NEWLINE# self . assertTrue ( self . serverFactory . rawdata , 'No encrypted bytes received' ) #NEWLINE# #UNINDENT# d = self . _runTest ( UnintelligentProtocol ( ) , LineCollector ( False , self . fillBuffer ) ) #NEWLINE# return d . addCallback ( check )