def assertMapWidget(self, form_instance):
self.assertTrue(form_instance.is_valid())<EOL>rendered = form_instance.as_p()<EOL>self.assertIn('<STR_LIT>', rendered)<EOL>self.assertIn('<STR_LIT>', rendered)<EOL>self.assertIn('<STR_LIT>', str(form_instance.media))<EOL>
Make sure the MapWidget js is passed in the form media and a MapWidget
is actually created