r22151 - gnucash/trunk/src/optional/python-bindings/tests - Remove test obsoleted by r22001

John Ralls jralls at code.gnucash.org
Thu Apr 19 16:00:19 EDT 2012


Author: jralls
Date: 2012-04-19 16:00:18 -0400 (Thu, 19 Apr 2012)
New Revision: 22151
Trac: http://svn.gnucash.org/trac/changeset/22151

Modified:
   gnucash/trunk/src/optional/python-bindings/tests/test_business.py
Log:
Remove test obsoleted by r22001

Which rearranged the ApplyPayments code so that it's done from the
GncInvoice object instead of explicitly by the owner (or in this case,
GncCustomer).

Modified: gnucash/trunk/src/optional/python-bindings/tests/test_business.py
===================================================================
--- gnucash/trunk/src/optional/python-bindings/tests/test_business.py	2012-04-17 19:55:33 UTC (rev 22150)
+++ gnucash/trunk/src/optional/python-bindings/tests/test_business.py	2012-04-19 20:00:18 UTC (rev 22151)
@@ -58,25 +58,6 @@
     def test_post(self):
         self.assertTrue( self.invoice.IsPosted() )
 
-    def test_payment(self):
-        self.assertFalse( self.invoice.IsPaid() )
-        self.customer.ApplyPayment(
-            self.invoice,
-            self.receivable, self.bank,
-            GncNumeric(50), GncNumeric(50),
-            self.today,
-            "", "")
-        self.assertFalse( self.invoice.IsPaid() )
-        BAL = self.invoice.GetPostedLot().get_balance()
-        self.assertTrue( GncNumeric(50).equal( BAL ) )
-        self.customer.ApplyPayment(
-            self.invoice,
-            self.receivable, self.bank,
-            GncNumeric(50), GncNumeric(50),
-            self.today,
-            "", "")
-        self.assertTrue( self.invoice.IsPaid() )
-
     def test_owner(self):
         OWNER = self.invoice.GetOwner()
         self.assertTrue( self.customer.Equal( OWNER ) )



More information about the gnucash-changes mailing list