#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( TestProviderHelpCommand , self ) . setUp ( ) #NEWLINE# self . session . provider = None #NEWLINE# self . command_table = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . arg_table = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . description = None #NEWLINE# self . synopsis = None #NEWLINE# self . usage = None #NEWLINE# self . tags_dict = { #NEWLINE# #INDENT# 'topic-name-1' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# 'topic-name-2' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# json_index = self . file_creator . create_file ( 'index.json' , '' ) #NEWLINE# with open ( json_index , 'w' ) as f : #NEWLINE# #INDENT# json . dump ( self . tags_dict , f , indent = 4 , sort_keys = True ) #NEWLINE# #UNINDENT# self . json_patch = mock . patch ( 'awscli.topictags.TopicTagDB.index_file' , json_index ) #NEWLINE# self . json_patch . start ( ) #NEWLINE# self . cmd = ProviderHelpCommand ( self . session , self . command_table , self . arg_table , self . description , self . synopsis , self . usage )