#NEWLINE# def test_several_collections( self ) : #NEWLINE# #INDENT# collection1 = EntityCollection ( ) #NEWLINE# collection2 = EntityCollection ( ) #NEWLINE# class A ( Entity ) : #NEWLINE# #INDENT# name = Field ( String ( 30 ) ) #NEWLINE# using_options ( collection = collection1 , tablename = 'a' ) #NEWLINE# #UNINDENT# class B ( Entity ) : #NEWLINE# #INDENT# name = Field ( String ( 30 ) ) #NEWLINE# using_options ( collection = collection2 , tablename = 'b' ) #NEWLINE# #UNINDENT# assert ( A not in elixir . entities ) #NEWLINE# assert ( B not in elixir . entities ) #NEWLINE# assert ( A in collection1 ) #NEWLINE# assert ( B in collection2 ) #NEWLINE# setup_entities ( collection1 ) #NEWLINE# setup_entities ( collection2 ) #NEWLINE# assert isinstance ( metadata . tables [ 'a' ] , Table ) #NEWLINE# assert isinstance ( metadata . tables [ 'b' ] , Table )