<s> """<STR_LIT>""" <EOL> import glob <EOL> import os <EOL> from grr . lib import config_lib <EOL> from grr . lib import flags <EOL> from grr . lib import test_lib <EOL> from grr . lib . checks import checks_test_lib <EOL> class ValidFormatTest ( checks_test_lib . HostCheckTest ) : <EOL> def testParseChecks ( self ) : <EOL> """<STR_LIT>""" <EOL> check_configs = [ ] <EOL> for path in config_lib . CONFIG [ "<STR_LIT>" ] : <EOL> check_configs . extend ( glob . glob ( os . path . join ( path , "<STR_LIT>" ) ) ) <EOL> errors = "<STR_LIT>" <EOL> for f in check_configs : <EOL> try : <EOL> self . assertValidCheckFile ( f ) <EOL> except AssertionError as e : <EOL> errors += "<STR_LIT>" % e <EOL> self . assertFalse ( errors , "<STR_LIT>" % errors ) <EOL> def main ( argv ) : <EOL> test_lib . GrrTestProgram ( argv = argv ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> flags . StartMain ( main ) </s>
