mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 00:25:41 +01:00
11 lines
341 B
Python
11 lines
341 B
Python
|
|
from django.test import TestCase
|
||
|
|
from ..forms import ImageForm
|
||
|
|
|
||
|
|
|
||
|
|
__all__ = ['ImageFormTest']
|
||
|
|
|
||
|
|
class ImageFormTest(TestCase):
|
||
|
|
def test_image_field_prefix(self):
|
||
|
|
"""Assert that the image field has a proper name"""
|
||
|
|
form = ImageForm()
|
||
|
|
self.assertInHTML("<input id='id_qqfile' name='qqfile' type='file' />", str(form))
|