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

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

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_widgets.py   Products.Archetypes(Download)
 
        form = {'richtextfield_file': stub_text_file}
        request.form.update(form)
        doc.processForm(REQUEST=request)
        self.assertEqual(field.getContentType(doc), 'text/x-rst')
                'richtextfield_file': stub_text_file,
                }
        request.form.update(form)
        doc.processForm(REQUEST=request)
        self.assertEqual(field.getContentType(doc), 'text/x-rst')

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/tests/test_widgets.py   Products.Archetypes(Download)
 
        form = {'richtextfield_file': stub_text_file}
        request.form.update(form)
        doc.processForm(REQUEST=request)
        self.assertEqual(field.getContentType(doc), 'text/x-rst')
                'richtextfield_file': stub_text_file,
                }
        request.form.update(form)
        doc.processForm(REQUEST=request)
        self.assertEqual(field.getContentType(doc), 'text/x-rst')

src/m/e/medialog.emailfield-0.1b1/medialog/emailfield/tests/test_emailfield.py   medialog.emailfield(Download)
    def test_processing(self):
        dummy = self.makeDummy()
        request = FakeRequest()
        request.form.update(field_values)
        dummy.REQUEST = request
    def test_validation(self):
        dummy = self.makeDummy()
        request = FakeRequest()
        request.form.update({'email':'xxx'})
        request.form['fieldset'] = 'default'
        self.failIf(errors, expected)
 
        request.form.update({'email':'xxx@mail.com'})
        request.form['fieldset'] = 'default'
        dummy.REQUEST = request

src/m/e/medialog.fullnamefield-0.1b1/medialog/fullnamefield/tests/test_fullnamefield.py   medialog.fullnamefield(Download)
    def test_processing(self):
        dummy = self.makeDummy()
        request = FakeRequest()
        request.form.update(field_values)
        dummy.REQUEST = request