Re: Want to test a file-upload with django.test.client

2009-01-09 Thread thomasbecht...@googlemail.com
I forgot the output for request.FILES. it's: CRITICAL request.FILES: On 9 Jan., 17:21, "thomasbecht...@googlemail.com" wrote: > Hi all, > > i have to replace a php-script with a django-view. The django-view > just get some Post-Data and a file. The view works fine. > Now, i want to write a tes

Want to test a file-upload with django.test.client

2009-01-09 Thread thomasbecht...@googlemail.com
Hi all, i have to replace a php-script with a django-view. The django-view just get some Post-Data and a file. The view works fine. Now, i want to write a test for the upload. My Script looks like this: from django.test.client import Client from django.test import client c = Client() file = ope