def test_form_media_multi(self):
        class F(Form):
            fields=[Field('name', 
                          widget=Widget(media=[
                              FormCSSRef('field.css'),
                              FormJSRef('field.js')
                          ])),
                    Field('name1', 
                          widget=Widget(media=FormCSSRef('field.css')))]
        form = F()
        self.assertEqual(form.get_media(), 
                         FormMedia(items=[FormCSSRef('field.css'),
                                          FormJSRef('field.js')]))
Multi media atoms in field
dataset/ETHPy150Open SmartTeleMax/iktomi/tests/forms/media.py/MediaTests.test_form_media_multi