#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . store = MongoServerStore ( self . conn , self . __class__ . __name__ ) #NEWLINE# self . store = ReverseDependencyMongoStore ( self . store ) #NEWLINE# bver = BlockVersion . loads ( 'creator/block(owner/branch):2' ) #NEWLINE# self . bv2 = BlockVersion . loads ( 'creator2/block(owner2/branch):2' ) #NEWLINE# self . bv3 = BlockVersion . loads ( 'creator3/block(owner3/branch):3' ) #NEWLINE# self . reverse = ReverseDependency ( bver ) #NEWLINE# self . reverse . add_dependant_version ( self . bv2 ) #NEWLINE# self . reverse . add_dependant_version ( self . bv3 ) #NEWLINE# self . store . upsert_reverse_dependencies ( self . reverse ) #NEWLINE# bver2 = BlockVersion . loads ( 'creator/block(owner/branch):3' ) #NEWLINE# self . reverse2 = ReverseDependency ( bver2 ) #NEWLINE# self . reverse2 . add_dependant_version ( self . bv2 ) #NEWLINE# self . reverse2 . add_dependant_version ( self . bv3 ) #NEWLINE# self . store . upsert_reverse_dependencies ( self . reverse2 )