<s> '''<STR_LIT>''' <EOL> import unittest <EOL> from apachelogs import ApacheLogFile <EOL> class apachelogs_test ( unittest . TestCase ) : <EOL> def test_foo ( self ) : <EOL> log = ApacheLogFile ( '<STR_LIT>' ) <EOL> line = iter ( log ) . next ( ) <EOL> self . assertEquals ( line . ip , '<STR_LIT:127.0.0.1>' ) <EOL> self . assertEquals ( line . ident , '<STR_LIT:->' ) <EOL> self . assertEquals ( line . http_user , '<STR_LIT>' ) <EOL> self . assertEquals ( line . time , '<STR_LIT>' ) <EOL> self . assertEquals ( line . request_line , '<STR_LIT>' ) <EOL> self . assertEquals ( line . http_response_code , '<STR_LIT>' ) <EOL> self . assertEquals ( line . http_response_size , '<STR_LIT>' ) <EOL> self . assertEquals ( line . referrer , '<STR_LIT>' ) <EOL> self . assertEquals ( line . user_agent , '<STR_LIT>' ) <EOL> log . close ( ) <EOL> def setUp ( self ) : <EOL> pass <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
