#NEWLINE# def testComponents( self ) : #NEWLINE# #INDENT# value = Value ( { #NEWLINE# #INDENT# 'EUR' : Decimal ( '31.99' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( [ value ] , list ( value . components ( ) ) ) #NEWLINE# self . assertEqual ( [ value ] , list ( value . components ( [ 'EUR' ] ) ) ) #NEWLINE# self . assertEqual ( [ ZERO ] , list ( value . components ( [ 'USD' ] ) ) ) #NEWLINE# self . assertEqual ( [ ZERO ] , list ( value . components ( [ ] ) ) )