def test_form_media_one(self):
        class F(Form):
            fields=[Field('name',
                          widget=Widget(media=FormCSSRef('field.css'))),
                    Field('name1')]
        form = F()
        self.assertEqual(form.get_media(), 
                         FormMedia(FormCSSRef('field.css')))
Custom media in one of field
dataset/ETHPy150Open SmartTeleMax/iktomi/tests/forms/media.py/MediaTests.test_form_media_one