def test_self_link(self):
    BLOB_NAME = 'blob-name'
    bucket = _Bucket()
    SELF_LINK = 'http://example.com/self/'
    properties = {'selfLink': SELF_LINK}
    blob = self._make_one(BLOB_NAME, bucket=bucket, properties=properties)
    self.assertEqual(blob.self_link, SELF_LINK)
def test_self_link(self):
    BLOB_NAME = 'blob-name'
    bucket = _Bucket()
    SELF_LINK = 'http://example.com/self/'
    properties = {'selfLink': SELF_LINK}
    blob = self._make_one(BLOB_NAME, bucket=bucket, properties=properties)
    self.assertEqual(blob.self_link, SELF_LINK)