<s> import unittest <EOL> import json <EOL> import os <EOL> class TestAllFilesAreJSON ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> maxDiff = None <EOL> def test_all_files_JSON ( self ) : <EOL> not_json = [ ] <EOL> for _file in os . listdir ( '<STR_LIT>' ) : <EOL> if not _file . endswith ( '<STR_LIT>' ) : <EOL> not_json . append ( _file ) <EOL> self . assertEqual ( not_json , [ ] ) <EOL> def test_all_files_JSON_content ( self ) : <EOL> not_json = [ ] <EOL> for _file in os . listdir ( '<STR_LIT>' ) : <EOL> try : <EOL> json . loads ( file ( os . path . join ( '<STR_LIT>' , _file ) ) . read ( ) ) <EOL> except : <EOL> not_json . append ( _file ) <EOL> self . assertEqual ( not_json , [ ] ) </s>
