def test_multiple_naming(self):
    html = MultipleNamingForm().as_p()
    self.assertIn('name="default_location"', html)
    self.assertIn('data-lat-field="default_location_lat"', html)
    self.assertIn('data-lon-field="default_location_lon"', html)
    self.assertIn('name="default_location_lat"', html)
    self.assertIn('name="default_location_lon"', html)
    self.assertIn('<script type="application/javascript">$(function(){$("#id_default_location").osmfield();});</script>', html)
    self.assertIn('name="custom_location"', html)
    self.assertIn('data-lat-field="custom_latitude"', html)
    self.assertIn('data-lon-field="custom_longitude"', html)
    self.assertIn('name="custom_latitude"', html)
    self.assertIn('name="custom_longitude"', html)
    self.assertIn('<script type="application/javascript">$(function(){$("#id_custom_location").osmfield();});</script>', html)
def test_multiple_naming(self):
    html = MultipleNamingForm().as_p()
    self.assertIn('name="default_location"', html)
    self.assertIn('data-lat-field="default_location_lat"', html)
    self.assertIn('data-lon-field="default_location_lon"', html)
    self.assertIn('name="default_location_lat"', html)
    self.assertIn('name="default_location_lon"', html)
    self.assertIn('<script type="application/javascript">$(function(){$("#id_default_location").osmfield();});</script>', html)
    self.assertIn('name="custom_location"', html)
    self.assertIn('data-lat-field="custom_latitude"', html)
    self.assertIn('data-lon-field="custom_longitude"', html)
    self.assertIn('name="custom_latitude"', html)
    self.assertIn('name="custom_longitude"', html)
    self.assertIn('<script type="application/javascript">$(function(){$("#id_custom_location").osmfield();});</script>', html)