<s> import os <EOL> import sys <EOL> import boto <EOL> import boto . cloudformation <EOL> import pytest <EOL> from f5_aws . config import Config <EOL> config = Config ( ) . config <EOL> region_for_tests = config [ '<STR_LIT>' ] [ <NUM_LIT:0> ] <EOL> local_cft_path = '<STR_LIT>' <EOL> cfts = [ ( config [ '<STR_LIT>' ] + local_cft_path + f ) for f in os . listdir ( config [ '<STR_LIT>' ] + local_cft_path ) ] <EOL> @ pytest . fixture ( scope = "<STR_LIT>" , params = cfts ) <EOL> def testenv ( request ) : <EOL> testenv = dict ( ) <EOL> testenv [ '<STR_LIT>' ] = boto . cloudformation . connect_to_region ( region_for_tests ) <EOL> testenv [ '<STR_LIT>' ] = request . param <EOL> return testenv <EOL> def test_cft ( testenv ) : <EOL> template_loc = '<STR_LIT>' + testenv [ '<STR_LIT>' ] <EOL> content = open ( template_loc , '<STR_LIT:r>' ) . read ( ) <EOL> testenv [ '<STR_LIT>' ] . validate_template ( template_body = content ) <EOL> assert True </s>
