'Tests that the upload computes correctly next session IDs'

def test_coherent_importer_session(self):

    session_ids = []
    fname = os.path.join(GOOD_DATA, 'raster', 'relief_san_andres.tif')
    self.upload_file(fname, self.complete_raster_upload, session_ids=session_ids)
    invalid_path = os.path.join(BAD_DATA)
    self.upload_folder_of_files(invalid_path, self.check_invalid_projection, session_ids=session_ids)
    fname = os.path.join(GOOD_DATA, 'raster', 'relief_san_andres.tif')
    self.upload_file(fname, self.complete_raster_upload, session_ids=session_ids)
    self.assertTrue((len(session_ids) > 1))
    self.assertTrue((int(session_ids[0]) < int(session_ids[1])))
