#NEWLINE# def test_can_be_created_without_offer_or_voucher( self ) : #NEWLINE# #INDENT# order = create_order ( number = '100002' ) #NEWLINE# discount = OrderDiscount . objects . create ( order = order , amount = D ( '10.00' ) ) #NEWLINE# self . assertTrue ( ( discount . voucher is None ) ) #NEWLINE# self . assertTrue ( ( discount . offer is None ) ) #NEWLINE# self . assertEqual ( discount . description ( ) , '' )