'Check that keywords can be passed to file_upload'

def test_keywords_upload(self):

    thefile = os.path.join(gisdata.VECTOR_DATA, 'san_andres_y_providencia_poi.shp')
    uploaded = file_upload(thefile, keywords=['foo', 'bar'], overwrite=True)
    keywords = uploaded.keyword_list()
    msg = ('No    keywords    found    in    layer    %s' % uploaded.name)
    assert (len(keywords) > 0), msg
    assert ('foo' in uploaded.keyword_list()), ('Could    not    find    "foo"    in    %s' % keywords)
    assert ('bar' in uploaded.keyword_list()), ('Could    not    find    "bar"    in    %s' % keywords)
