Changeset 6484 for main/waeup.sirp/trunk


Ignore:
Timestamp:
29 Jun 2011, 09:47:39 (14 years ago)
Author:
Henrik Bettermann
Message:

Indeed the test passes now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py

    r6483 r6484  
    2727import unittest
    2828from datetime import datetime
    29 from zope.app.testing.functional import FunctionalTestCase
    3029from zope.app.testing.functional import HTTPCaller as http
    3130from zope.component import createObject
     
    3332from zope.security.interfaces import Unauthorized
    3433from zope.testbrowser.testing import Browser
    35 from waeup.sirp.testing import FunctionalLayer
     34from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
    3635from waeup.sirp.app import University
    3736from waeup.sirp.applicants.container import ApplicantsContainer
     
    211210        self.browser.getControl(name="form.lastname").value = 'Tester'
    212211        self.browser.getControl(name="form.course1").value = ['CERT1']
    213         self.browser.getControl(name="form.date_of_birth").value = 'Jonathan'
     212        self.browser.getControl(name="form.date_of_birth").value = '09/09/1988'
    214213        self.browser.getControl(name="form.lga").value = ['foreigner']
    215214        self.browser.getControl(name="form.sex").value = ['m']
    216215        self.browser.getControl("Save").click()
    217         self.assertTrue('Required input is missing' in self.browser.contents)
     216        self.assertMatches('...Form has been saved...', self.browser.contents)
    218217        return
    219218
Note: See TracChangeset for help on using the changeset viewer.