

def test_bad_xml_lifecycle(self):
    bucket_uri = self.CreateBucket()
    fpath = self.CreateTempFile(contents=self.xml_doc)
    stderr = self.RunGsUtil(['lifecycle', 'set', fpath, suri(bucket_uri)], expected_status=1, return_stderr=True)
    self.assertIn('XML lifecycle data provided', stderr)

dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/test_lifecycle.py TestSetLifecycle.test_bad_xml_lifecycle/original