'Override the baseclass test and verify a correct CSV upload'

def test_csv(self):

    csv_file = self.make_csv(['lat', 'lon', 'thing'], ['-100', '-40', 'foo'])
    (layer_name, ext) = os.path.splitext(os.path.basename(csv_file))
    (resp, form_data) = self.client.upload_file(csv_file)
    self.check_save_step(resp, form_data)
    csv_step = form_data['redirect_to']
    self.assertEquals(csv_step, upload_step('csv'))
    form_data = dict(lat='lat', lng='lon', csrfmiddlewaretoken=self.client.get_csrf_token())
    resp = self.client.make_request(csv_step, form_data)
    content = json.loads(resp.read())
    resp = self.client.get(content.get('redirect_to'))
    content = json.loads(resp.read())
    url = content.get('url')
    self.assertTrue(url.endswith(layer_name), ('expected    url    to    end    with    %s,    but    got    %s' % (layer_name, url)))
    self.assertEquals(resp.code, 200)
    self.check_layer_complete(url, layer_name)
