def test_mixed_naming(self):
    html = MixedNamingForm().as_p()
    self.assertIn('name="location"', html)
    self.assertIn('data-lat-field="location_lat"', html)
    self.assertIn('data-lon-field="longitude"', html)
    self.assertIn('name="location_lat"', html)
    self.assertIn('name="longitude"', html)
    self.assertIn('<script type="application/javascript">$(function(){$("#id_location").osmfield();});</script>', html)
def test_mixed_naming(self):
    html = MixedNamingForm().as_p()
    self.assertIn('name="location"', html)
    self.assertIn('data-lat-field="location_lat"', html)
    self.assertIn('data-lon-field="longitude"', html)
    self.assertIn('name="location_lat"', html)
    self.assertIn('name="longitude"', html)
    self.assertIn('<script type="application/javascript">$(function(){$("#id_location").osmfield();});</script>', html)