@unittest.skipUnless(NOTIFICATION_URL,
                       'Test requires notification URL configuration.')
  def test_stop_channel(self):
    bucket_uri = self.CreateBucket()
    stderr = self.RunGsUtil(
        ['notification', 'watchbucket', NOTIFICATION_URL, suri(bucket_uri)],
        return_stderr=True)

    channel_id = re.findall(r'channel identifier: (?P<id>.*)', stderr)
    self.assertEqual(len(channel_id), 1)
    resource_id = re.findall(r'resource identifier: (?P<id>.*)', stderr)
    self.assertEqual(len(resource_id), 1)

    channel_id = channel_id[0]
    resource_id = resource_id[0]

    self.RunGsUtil(['notification', 'stopchannel', channel_id, resource_id])
Returns a bytestring version of 's', encoded as specified in 'encoding'.
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/test_notification.py/TestNotification.test_stop_channel--crossover with--dataset/ETHPy150Open gratipay/gratipay.com/gratipay/security/crypto.py/smart_str