django unit test file field froms example
from django import forms from .models import FooModel class FooForm(forms.ModelForm): class Meta: model = FooModel fields = ['bar']