<s> '''<STR_LIT>''' <EOL> import os <EOL> import sys <EOL> import json <EOL> from . docs_utils import * <EOL> class AdDocsTestCase ( DocsTestCase ) : <EOL> def setUp ( self ) : <EOL> page = Page ( DocsDataStore . get ( '<STR_LIT>' ) ) <EOL> leadgen_forms = page . get_leadgen_forms ( ) <EOL> if leadgen_forms [ <NUM_LIT:0> ] : <EOL> DocsDataStore . set ( '<STR_LIT>' , leadgen_forms [ <NUM_LIT:0> ] . get_id ( ) ) <EOL> def test_get_leads ( self ) : <EOL> form = LeadgenForm ( DocsDataStore . get ( '<STR_LIT>' ) ) <EOL> leads = form . remote_read ( ) <EOL> self . store_response ( leads ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> handle = open ( DocsDataStore . get ( '<STR_LIT:filename>' ) , '<STR_LIT:w>' ) <EOL> handle . write ( '<STR_LIT>' ) <EOL> handle . close ( ) <EOL> try : <EOL> config_file = open ( '<STR_LIT>' ) <EOL> except IOError : <EOL> print ( "<STR_LIT>" ) <EOL> sys . exit ( ) <EOL> config = json . load ( config_file ) <EOL> config_file . close ( ) <EOL> FacebookAdsApi . init ( <EOL> config [ '<STR_LIT>' ] , <EOL> config [ '<STR_LIT>' ] , <EOL> config [ '<STR_LIT>' ] , <EOL> config [ '<STR_LIT>' ] , <EOL> ) <EOL> DocsDataStore . set ( '<STR_LIT>' , config [ '<STR_LIT>' ] ) <EOL> DocsDataStore . set ( '<STR_LIT>' , config [ '<STR_LIT>' ] ) <EOL> DocsDataStore . set ( '<STR_LIT>' , config [ '<STR_LIT>' ] ) <EOL> DocsDataStore . set ( '<STR_LIT>' , config [ '<STR_LIT>' ] ) <EOL> DocsDataStore . set ( '<STR_LIT>' , config [ '<STR_LIT>' ] ) <EOL> DocsDataStore . set ( '<STR_LIT>' , config [ '<STR_LIT>' ] ) <EOL> DocsDataStore . set ( '<STR_LIT>' , config [ '<STR_LIT>' ] ) <EOL> DocsDataStore . set ( '<STR_LIT>' , config [ '<STR_LIT>' ] ) <EOL> DocsDataStore . set ( '<STR_LIT>' , config [ '<STR_LIT>' ] ) <EOL> DocsDataStore . set ( '<STR_LIT>' , config [ '<STR_LIT>' ] ) <EOL> DocsDataStore . set ( '<STR_LIT>' , config [ '<STR_LIT>' ] ) <EOL> unittest . main ( ) </s>
