def test_form_media_same(self):
        class F(Form):
            fields=[Field('name',
                          widget=Widget(media=FormCSSRef('field.css'))),
                    Field('name1',
                          widget=Widget(media=FormCSSRef('field.css')))]
        form = F()
        self.assertEqual(form.get_media(), 
                         FormMedia(FormCSSRef('field.css')))
Data should not be saved if the template is invalid.
dataset/ETHPy150Open SmartTeleMax/iktomi/tests/forms/media.py/MediaTests.test_form_media_same--crossover with--dataset/ETHPy150Open caktus/django-scribbler/scribbler/tests/test_views.py/EditTestCase.test_invalid_template