@override_settings(DEBUG=True)
def test_js_debug(self):
    js = DefaultNamingForm().media.render_js()
    self.assertEqual('<script type="text/javascript" src="js/vendor/leaflet.js"></script><script type="text/javascript" src="js/osm_field.js"></script>', ''.join(js))
@override_settings(DEBUG=True)
def test_js_debug(self):
    js = DefaultNamingForm().media.render_js()
    self.assertEqual('<script type="text/javascript" src="js/vendor/leaflet.js"></script><script type="text/javascript" src="js/osm_field.js"></script>', .join(js))