<s> """<STR_LIT>""" <EOL> from twisted . trial import unittest <EOL> from twisted . protocols import finger <EOL> from twisted . test . proto_helpers import StringTransport <EOL> class FingerTestCase ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> """<STR_LIT>""" <EOL> self . transport = StringTransport ( ) <EOL> self . protocol = finger . Finger ( ) <EOL> self . protocol . makeConnection ( self . transport ) <EOL> def test_simple ( self ) : <EOL> """<STR_LIT>""" <EOL> self . protocol . dataReceived ( "<STR_LIT>" ) <EOL> self . assertEqual ( <EOL> self . transport . value ( ) , <EOL> "<STR_LIT>" ) <EOL> def test_simpleW ( self ) : <EOL> """<STR_LIT>""" <EOL> self . protocol . dataReceived ( "<STR_LIT>" ) <EOL> self . assertEqual ( <EOL> self . transport . value ( ) , <EOL> "<STR_LIT>" ) <EOL> def test_forwarding ( self ) : <EOL> """<STR_LIT>""" <EOL> self . protocol . dataReceived ( "<STR_LIT>" ) <EOL> self . assertEqual ( <EOL> self . transport . value ( ) , <EOL> "<STR_LIT>" ) <EOL> def test_list ( self ) : <EOL> """<STR_LIT>""" <EOL> self . protocol . dataReceived ( "<STR_LIT:\r\n>" ) <EOL> self . assertEqual ( <EOL> self . transport . value ( ) , <EOL> "<STR_LIT>" ) </s>
