'Test GCS url parsing'

def test_gcs_url_parse(self):

    logging.info(u'About    to    create    a    GCSLog    object    without    a    connection.    This    will    log    an    error    but    testing    will    proceed.')
    glog = airflow.utils.logging.GCSLog()
    self.assertEqual(glog.parse_gcs_url(u'gs://bucket/path/to/blob'), (u'bucket', u'path/to/blob'))
    self.assertRaises(AirflowException, glog.parse_gcs_url, u'gs:/bucket/path/to/blob')
    self.assertEqual(glog.parse_gcs_url(u'gs://bucket/path/to/blob/'), (u'bucket', u'path/to/blob'))
    self.assertEqual(glog.parse_gcs_url(u'gs://bucket/'), (u'bucket', u''))
