Django

Code

Changeset 5169

Show
Ignore:
Timestamp:
05/07/07 22:45:33 (2 years ago)
Author:
mtredinnick
Message:

Removed a bunch of trailing whitespace. Don't people realise whitespace is a
scarce resource, not to be wasted?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/testing.txt

    r5168 r5169  
    469469 
    470470``assertFormError(response, form, field, errors)`` 
    471     Assert that a field on a form raised the provided list of errors when  
    472     rendered on the form.  
    473      
    474     ``form`` is the name the form object was given in the template context.  
    475      
    476     ``field`` is the name of the field on the form to check. If ``field``  
     471    Assert that a field on a form raised the provided list of errors when 
     472    rendered on the form. 
     473 
     474    ``form`` is the name the form object was given in the template context. 
     475 
     476    ``field`` is the name of the field on the form to check. If ``field`` 
    477477    has a value of ``None``, non-field errors will be checked. 
    478      
    479     ``errors`` is an error string, or a list of error strings, that are  
    480     expected as a result of form validation.     
    481      
     478 
     479    ``errors`` is an error string, or a list of error strings, that are 
     480    expected as a result of form validation. 
     481 
    482482``assertTemplateNotUsed(response, template_name)`` 
    483     Assert that the template with the given name was *not* used in rendering  
     483    Assert that the template with the given name was *not* used in rendering 
    484484    the response. 
    485      
     485 
    486486``assertRedirects(response, expected_path)`` 
    487487    Assert that the response received redirects the browser to the provided 
    488     path, and that the expected_path can be retrieved.  
     488    path, and that the expected_path can be retrieved. 
    489489 
    490490``assertTemplateUsed(response, template_name)`` 
    491491    Assert that the template with the given name was used in rendering the 
    492492    response. 
    493      
    494      
     493 
     494 
    495495Running tests 
    496496=============