Did I find the right examples for you? yes no

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/tests/test_admininterface.py   Products.PloneGetPaid(Download)
        our_payment_processor = "Google Checkout"
        self.manage_options.payment_processor = [our_payment_processor]
        self.failUnless(our_payment_processor in self.manage_options.payment_processor)
 
 
        self.manage_options.currency = [our_currency]
        #test to see if it was set properly
        self.failUnless(our_currency in self.manage_options.currency)
 
 
        self.manage_options.disclaimer = [our_disclaimer]
        #test to see if it was set properly
        self.failUnless(our_disclaimer in self.manage_options.disclaimer)
 
    def testSetupShipping( self ):
        """Test setting a shipping method."""
        our_shipping_method = "UPS"
        self.manage_options.shipping_method = [our_shipping_method]
        #test to see if it was set properly
        self.failUnless(our_shipping_method in self.manage_options.shipping_method)
        self.manage_options.tax_method = [our_tax_method]
        #test to see if it was set properly
        self.failUnless(our_tax_method in self.manage_options.tax_method)
 
    def testSetupDiscounts( self ):

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/tests/test_setup.py   Products.PloneGetPaid(Download)
        portletnames = [v.title for v in manager.values()]
 
        self.failUnless(u'Shopping Cart' in portletnames)
        self.failUnless(u'Buyable' in portletnames)
        self.failUnless(u'Donatable' in portletnames)
        self.failUnless(u'Shippable' in portletnames)
        self.failUnless(u'Premium' in portletnames)

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/tests/test_donation.py   Products.PloneGetPaid(Download)
    def testHaveFields(self):
        """ Set and check IDonatableMarker schema """
        for f in ('product_code', 'price', 'donation_text', 'made_payable_by'):
            self.failUnless(f in getFieldNames(igetpaid.IDonationContent))
 
 
        payable.setProperty('donation_text','description')
        self.failUnless(payable.donation_text == 'description')
 
        # XXX how do we test validation and required?
        #   for example, price should only accept a float
        payable.setProperty('price','description')
        self.failUnless(payable.donation_text == 'description')