#NEWLINE# def test_references_in_containers( self ) : #NEWLINE# #INDENT# from bokeh.core.properties import Int , String , Instance , List , Tuple , Dict #NEWLINE# class U ( self . pObjectClass ) : #NEWLINE# #INDENT# a = Int #NEWLINE# #UNINDENT# class V ( self . pObjectClass ) : #NEWLINE# #INDENT# u1 = Instance ( U ) #NEWLINE# u2 = List ( Instance ( U ) ) #NEWLINE# u3 = Tuple ( Int , Instance ( U ) ) #NEWLINE# u4 = Dict ( String , Instance ( U ) ) #NEWLINE# u5 = Dict ( String , List ( Instance ( U ) ) ) #NEWLINE# #UNINDENT# ( u1 , u2 , u3 , u4 , u5 ) = ( U ( a = 1 ) , U ( a = 2 ) , U ( a = 3 ) , U ( a = 4 ) , U ( a = 5 ) ) #NEWLINE# v = V ( u1 = u1 , u2 = [ u2 ] , u3 = ( 3 , u3 ) , u4 = { #NEWLINE# #INDENT# '4' : u4 , #NEWLINE# #UNINDENT# } , u5 = { #NEWLINE# #INDENT# '5' : [ u5 ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( v . references ( ) , set ( [ v , u1 , u2 , u3 , u4 , u5 ] ) )