Changeset 3890


Ignore:
Timestamp:
30 Jan 2009, 16:00:26 (16 years ago)
Author:
uli
Message:

Fix tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/browser.txt

    r3849 r3890  
    5454=========
    5555
    56 We can add faculties, by calling and submitting an add form of an
    57 university. The add form can be retrieved by calling the
    58 ``addfaculty`` view of an university::
     56Faculties are stored in a special container of `IUniversity`
     57instances. The container is called ``faculties`` and provides an
     58add-form to add new faculties::
    5959
    60   >>> browser.open('http://localhost/myuniversity/addfaculty')
     60  >>> browser.open('http://localhost/myuniversity/faculties/add')
    6161  >>> print browser.contents
    62   <html>...
     62  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    6363  ...<span class="required">*</span><span>Name of Faculty</span>
    6464  ...
     
    7171Finally we click on 'Add Faculty' to add the new thing::
    7272
    73   >>> browser.getControl('Add Faculty').click()
    74   >>> #print browser.contents
     73  >>> browser.getControl('Add faculty').click()
    7574
    7675We can view a faculty by browsing a URL like this::
    7776
    78   >>> browser.open('http://localhost/myuniversity/TestFac')
     77  >>> browser.open('http://localhost/myuniversity/faculties/testfac')
    7978
    8079Afterwards, the faculty should be visible:
     
    8281  >>> browser.open('http://localhost/myuniversity/')
    8382  >>> print browser.contents
    84   <html...
     83  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    8584  ...<h2>Your faculties:</h2>
    86   ...<a href="http://localhost/myuniversity/TestFac">TestFac</a>
     85  ...<a href="http://localhost/myuniversity/faculties/testfac">TestFac</a>
    8786  ...
    8887
Note: See TracChangeset for help on using the changeset viewer.