Django

Code

Show
Ignore:
Timestamp:
05/07/07 07:34:18 (2 years ago)
Author:
russellm
Message:

Added assertFormError, assertTemplateUsed and assertTemplateNotUsed for use during unit testing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/templates/login.html

    r3708 r5156  
    1 <html> 
    2 <head></head> 
    3 <body> 
    4 <h1>Django Internal Tests: Login</h1> 
     1{% extends "base.html" %} 
     2{% block title %}Login{% endblock %} 
     3{% block content %} 
    54{% if form.has_errors %} 
    65<p>Your username and password didn't match. Please try again.</p> 
     
    1615<input type="hidden" name="next" value="{{ next }}" /> 
    1716</form> 
    18 </body> 
    19 </html> 
     17{% endblock %}