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