You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
341 B

  1. from django.test import TestCase
  2. from ..forms import ImageForm
  3. __all__ = ['ImageFormTest']
  4. class ImageFormTest(TestCase):
  5. def test_image_field_prefix(self):
  6. """Assert that the image field has a proper name"""
  7. form = ImageForm()
  8. self.assertInHTML("<input id='id_qqfile' name='qqfile' type='file' />", str(form))