def test_ctor_with_encoded_unicode(self):
    blob_name = b'wet \xe2\x9b\xb5'
    blob = self._make_one(blob_name, bucket=None)
    unicode_name = u'wet ⛵'
    self.assertNotIsInstance(blob.name, bytes)
    self.assertIsInstance(blob.name, six.text_type)
    self.assertEqual(blob.name, unicode_name)
def test_ctor_with_encoded_unicode(self):
    blob_name = b'wet \xe2\x9b\xb5'
    blob = self._make_one(blob_name, bucket=None)
    unicode_name = u'wet ⛵'
    self.assertNotIsInstance(blob.name, bytes)
    self.assertIsInstance(blob.name, six.text_type)
    self.assertEqual(blob.name, unicode_name)