#NEWLINE# @ classmethod #NEWLINE# def setUpClass( cls ) : #NEWLINE# #INDENT# httpretty . enable ( ) #NEWLINE# datatable = { #NEWLINE# #INDENT# 'datatable' : DatatableFactory . build ( vendor_code = 'ZACKS' , datatable_code = 'FC' ) , #NEWLINE# #UNINDENT# } #NEWLINE# data = DatatableDataFactory . build ( ) #NEWLINE# datatable [ 'datatable' ] . update ( data ) #NEWLINE# meta = { #NEWLINE# #INDENT# 'meta' : DatatableMetaFactory . build ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# datatable . update ( meta ) #NEWLINE# httpretty . register_uri ( httpretty . GET , re . compile ( 'https://www.quandl.com/api/v3/datatables*' ) , body = json . dumps ( datatable ) ) #NEWLINE# cls . datatable_instance = Datatable ( datatable [ 'datatable' ] )