def get_field_lon(self, obj): if obj.longitud: return "%2.5f" % conversion(obj.longitud) return "0"
def get_field_lat_short_name(self, obj): if obj.latitud: return "%2.5f" % conversion(obj.latitud) return "0"
def convert(test, iny, inx, outy, outx): ny = conversion(iny) nx = conversion(inx) test.assertEqual("%0.6f" % ny, outy) test.assertEqual("%0.6f" % nx, outx)