Did I find the right examples for you? yes no

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

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/tests/test_admininterface.py   Products.PloneGetPaid(Download)
    def testSetupCreditcards( self ):
        """Test setting acceptable credit cards."""
        # Test default value
        self.assertEqual(
            self.manage_options.getProperty('credit_cards'), CREDIT_CARD_TYPES)
        our_credit_card = u"Visa"
        self.manage_options.setProperty('credit_cards', [our_credit_card])
        #test to see if it was set properly
        self.assertEqual([our_credit_card],