[POS-commit] r7212 - in stoqlib/trunk/stoqlib/domain: . test

Johan Dahlin jdahlin at async.com.br
Fri Aug 31 15:40:44 BRT 2007


Author: jdahlin
Date: Fri Aug 31 15:40:44 2007
New Revision: 7212

Modified:
   stoqlib/trunk/stoqlib/domain/sale.py
   stoqlib/trunk/stoqlib/domain/test/test_sale.py

Log:
Remove sale.check_payment_group

Modified: stoqlib/trunk/stoqlib/domain/sale.py
==============================================================================
--- stoqlib/trunk/stoqlib/domain/sale.py	(original)
+++ stoqlib/trunk/stoqlib/domain/sale.py	Fri Aug 31 15:40:44 2007
@@ -594,9 +594,6 @@
     # Re-evaluate
     #
 
-    def check_payment_group(self):
-        return IPaymentGroup(self, None)
-
     def update_client(self, person):
         # Do not change the name of this method to set_client: this is a
         # callback in SQLObject

Modified: stoqlib/trunk/stoqlib/domain/test/test_sale.py
==============================================================================
--- stoqlib/trunk/stoqlib/domain/test/test_sale.py	(original)
+++ stoqlib/trunk/stoqlib/domain/test/test_sale.py	Fri Aug 31 15:40:44 2007
@@ -156,9 +156,9 @@
         sale = self.create_sale()
         sale.addFacet(IPaymentGroup, connection=self.trans)
 
-        group = sale.check_payment_group()
+        group = IPaymentGroup(sale, None)
         assert isinstance(group, Sale.getAdapterClass(IPaymentGroup))
-        self.failIf(sale_no_payment.check_payment_group())
+        self.failIf(IPaymentGroup(sale_no_payment, None))
 
     def test_update_client(self):
         person = Person(name='Eliosvaldo', connection=self.trans)


More information about the POS-commit mailing list