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

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

src/p/r/Products.rendezvous-1.4.1/Products/rendezvous/tests/testRDV_RendezVous.py   Products.rendezvous(Download)
# -*- coding: utf-8 -*-
from Products.rendezvous.browser.RDV_RendezVousEdit import RDV_RendezVousEdit
from Products.rendezvous.browser.RDV_RendezVousView import RDV_RendezVousView
 
from ..testing import IntegrationTestCase
    def test_AddDate(self):
        request = self.portal.REQUEST
        view = RDV_RendezVousEdit(self.rdv, request)
        self.assertEqual([], view.getSelectedDates())
        request.form['rdvdate'] = '2008-11-27'
        view = RDV_RendezVousEdit(self.rdv, request)
        self.assertEqual(['2008-11-27'], view.getSelectedDates())
        request.form['rdvdate'] = '2008-11-28'
        view = RDV_RendezVousEdit(self.rdv, request)
        self.assertEqual(['2008-11-27', '2008-11-28'], view.getSelectedDates())
        request.form['rdvdate'] = '2008-11-29'
        view = RDV_RendezVousEdit(self.rdv, request)
        self.assertEqual(['2008-11-27', '2008-11-28', '2008-11-29'], view.getSelectedDates())