Changes between Version 97 and Version 98 of DeveloperGuidelinesTesting


Ignore:
Timestamp:
01/03/11 10:11:20 (14 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelinesTesting

    v97 v98  
    9494 * http://www.python.org/doc/2.6/library/doctest.html
    9595 * e.g. http://127.0.0.1:8000/admin/default/test/sahana/default.py
    96 To extend these to web applications, we have a module which uses [http://code.google.com/p/wsgi-intercept wsgi_intercept] & [http://cherrypy.org CherryPy]'s [http://cherrypy.org/browser/trunk/cherrypy/test/webtest.py WebTest]: {{{modules/s3_test.py}}} [[BR]]
     96To extend these to web applications, we have a module which uses [http://code.google.com/p/wsgi-intercept wsgi_intercept] & [http://cherrypy.org CherryPy]'s [http://cherrypy.org/browser/trunk/cherrypy/test/webtest.py WebTest]: {{{modules/s3/s3test.py}}} [[BR]]
    9797This can be used from Controllers like:
    9898{{{
    9999def login():
    100100    """ Login
    101     >>> from applications.sahana.modules.s3_test import WSGI_Test
     101    >>> from applications.sahana.modules.s3.s3test import WSGI_Test
    102102    >>> test=WSGI_Test(db)
    103103    >>> '200 OK' in test.getPage('/sahana/%s/login' % module)