<s> """<STR_LIT>""" <EOL> from google . apputils import basetest <EOL> from googleapis . codegen . utilities import json_with_comments <EOL> class JsonWithCommentsTest ( basetest . TestCase ) : <EOL> SOME_JSON_WITH_COMMENTS = """<STR_LIT>""" <EOL> JSON_CONTENT = { '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : [ '<STR_LIT>' ] } <EOL> def testLineNumbering ( self ) : <EOL> stripped = json_with_comments . _StripComments ( self . SOME_JSON_WITH_COMMENTS ) <EOL> num_lines = self . SOME_JSON_WITH_COMMENTS . count ( '<STR_LIT:\n>' ) <EOL> self . assertEquals ( num_lines , stripped . count ( '<STR_LIT:\n>' ) ) <EOL> def testLoads ( self ) : <EOL> data = json_with_comments . Loads ( self . SOME_JSON_WITH_COMMENTS ) <EOL> self . assertEquals ( self . JSON_CONTENT , data ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> basetest . main ( ) </s>
