Django

Code

Show
Ignore:
Timestamp:
03/20/08 02:19:53 (8 months ago)
Author:
mtredinnick
Message:

Fixed #6825 -- Fixed the model_forms tests to also work on Windows by making
the filename detection a lot looser. Thanks, jerickso.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/modeltests/model_forms/models.py

    r7326 r7335  
    800800>>> instance = f.save() 
    801801>>> instance.file 
    802 u'.../test1.txt' 
     802u'...test1.txt' 
    803803 
    804804# Edit an instance that already has the file defined in the model. This will not 
     
    809809True 
    810810>>> f.cleaned_data['file'] 
    811 u'.../test1.txt' 
     811u'...test1.txt' 
    812812>>> instance = f.save() 
    813813>>> instance.file 
    814 u'.../test1.txt' 
     814u'...test1.txt' 
    815815 
    816816# Delete the current file since this is not done by Django. 
     
    825825>>> instance = f.save() 
    826826>>> instance.file 
    827 u'.../test2.txt' 
     827u'...test2.txt' 
    828828 
    829829>>> instance.delete() 
     
    844844>>> instance = f.save() 
    845845>>> instance.file 
    846 u'.../test3.txt' 
     846u'...test3.txt' 
    847847>>> instance.delete() 
    848848 
     
    866866>>> instance = f.save() 
    867867>>> instance.image 
    868 u'.../test.png' 
     868u'...test.png' 
    869869 
    870870# Edit an instance that already has the image defined in the model. This will not 
     
    875875True 
    876876>>> f.cleaned_data['image'] 
    877 u'.../test.png' 
     877u'...test.png' 
    878878>>> instance = f.save() 
    879879>>> instance.image 
    880 u'.../test.png' 
     880u'...test.png' 
    881881 
    882882# Delete the current image since this is not done by Django. 
     
    891891>>> instance = f.save() 
    892892>>> instance.image 
    893 u'.../test2.png' 
     893u'...test2.png' 
    894894 
    895895>>> instance.delete() 
     
    910910>>> instance = f.save() 
    911911>>> instance.image 
    912 u'.../test3.png' 
     912u'...test3.png' 
    913913>>> instance.delete() 
    914914