#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . colormap = MockColorMap ( ) #NEWLINE# d = self . colormap . d #NEWLINE# self . colorset0 = ColorSet ( self . colormap , [ '' ] ) #NEWLINE# self . colorset1 = ColorSet ( self . colormap , [ d [ 1 ] , d [ 2 ] ] ) #NEWLINE# self . colorset2 = ColorSet ( self . colormap , [ d [ 3 ] ] ) #NEWLINE# self . def0 = { #NEWLINE# #INDENT# 'monikers' : [ 'bitcoin' ] , #NEWLINE# 'color_set' : self . colorset0 . get_data ( ) , #NEWLINE# 'unit' : 100000000 , #NEWLINE# #UNINDENT# } #NEWLINE# self . def1 = { #NEWLINE# #INDENT# 'monikers' : [ 'test1' ] , #NEWLINE# 'color_set' : self . colorset1 . get_data ( ) , #NEWLINE# 'unit' : 10 , #NEWLINE# #UNINDENT# } #NEWLINE# self . def2 = { #NEWLINE# #INDENT# 'monikers' : [ 'test2' , 'test2alt' ] , #NEWLINE# 'color_set' : self . colorset2 . get_data ( ) , #NEWLINE# 'unit' : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# self . asset0 = AssetDefinition ( self . colormap , self . def0 ) #NEWLINE# self . asset1 = AssetDefinition ( self . colormap , self . def1 ) #NEWLINE# self . asset2 = AssetDefinition ( self . colormap , self . def2 ) #NEWLINE# self . assetvalue0 = AdditiveAssetValue ( asset = self . asset0 , value = 5 ) #NEWLINE# self . assetvalue1 = AdditiveAssetValue ( asset = self . asset0 , value = 6 ) #NEWLINE# self . assetvalue2 = AdditiveAssetValue ( asset = self . asset1 , value = 7 ) #NEWLINE# self . assettarget0 = AssetTarget ( 'address0' , self . assetvalue0 ) #NEWLINE# self . assettarget1 = AssetTarget ( 'address1' , self . assetvalue1 ) #NEWLINE# self . assettarget2 = AssetTarget ( 'address2' , self . assetvalue2 ) #NEWLINE# config = { #NEWLINE# #INDENT# 'asset_definitions' : [ self . def1 , self . def2 ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . adm = AssetDefinitionManager ( self . colormap , config )