Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/p/r/Products.salesforcepfgadapter-1.9.1/Products/salesforcepfgadapter/tests/testUpdatingMode.py   Products.salesforcepfgadapter(Download)
        browser.getControl(name='comments').value = 'PloneTestCase'
        browser.getControl('Submit').click()
        self.failUnless('Thank You' in browser.contents)
 
    def testUpdateModeAbortIfNoMatch(self):
        browser.open('http://nohost/plone/ff1')
        self.assertEqual(browser.url, 'http://nohost/plone')
        self.failUnless('Could not find item to edit.' in browser.contents)
 
    def testUpdateModeAbortIfNoMatchOnDirectSubmission(self):
        # should end up on the portal root, with an error message
        self.assertEqual(browser.url, 'http://nohost/plone')
        self.failUnless('Could not find item to edit.' in browser.contents)
 
    def testUpdateWhenObjectInitiallyFoundGoesMissing(self):
        browser.getControl(name='replyto').value = ''
        browser.getControl('Submit').click()
        self.failUnless('Please correct the indicated errors.' in browser.contents)
        self.assertEqual(browser.getControl(name='replyto').value, '')
 

src/p/r/Products.salesforcepfgadapter-1.9.1/Products/salesforcepfgadapter/tests/testFieldPrepopulation.py   Products.salesforcepfgadapter(Download)
    def testGetRelevantSFAdapter(self):
        retriever = FieldValueRetriever(self.ff1.replyto, self.app.REQUEST)
        sfa = retriever.getRelevantSFAdapter()
        self.failUnless(sfa.aq_base is self.sfa.aq_base)
 
        retriever = FieldValueRetriever(fieldset_field, self.app.REQUEST)
        sfa = retriever.getRelevantSFAdapter()
        self.failUnless(sfa.aq_base is self.sfa.aq_base)
 
    def testRetrieveData(self):
        self.assertEqual(data['replyto'], 'archimedes@doe.com')
        self.assertEqual(data['lastname'], 'Doe')
        self.failUnless('Id' in data)
        self.assertEqual(len(data.keys()), 4)
 

src/p/r/Products.salesforcepfgadapter-1.9.1/Products/salesforcepfgadapter/tests/testFallback.py   Products.salesforcepfgadapter(Download)
        browser.getControl('Submit').click()
 
        self.failUnless('Thank You' in browser.contents)
        self.assertEqual(1, len(self.portal.MailHost.messages))
        self.failUnless('Someone submitted this form, but the data couldn\'t be saved to Salesforce'