#NEWLINE# def test_relation_is_properly_initialized( self ) : #NEWLINE# #INDENT# relation = self . _get_relation ( ) #NEWLINE# model = flexmock ( Model ( ) ) #NEWLINE# model . should_receive ( 'set_relation' ) . once ( ) . with_args ( 'foo' , Collection ) #NEWLINE# models = relation . init_relation ( [ self ] , 'foo' ) #NEWLINE# self . assertEqual ( [ model ] , models )