#NEWLINE# def test_can_be_created_with_an_offer_and_specified_offer_name( self ) : #NEWLINE# #INDENT# offer = create_offer ( name = 'My offer' ) #NEWLINE# order = create_order ( number = '100002' ) #NEWLINE# discount = OrderDiscount . objects . create ( order = order , amount = D ( '10.00' ) , offer_id = discount . id , offer_name = 'Your offer' ) #NEWLINE# self . assertEqual ( offer . id , discount . offer . id ) #NEWLINE# self . assertEqual ( 'Your offer' , discount . offer_name )