'Message' search by Google
/usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments ▶)
- @contextlib.contextmanager
- def testPartExecutor(self, test_case, isTest=False):
- old_success = self.success
- self.success = True
- try:
- yield
- except KeyboardInterrupt:
- raise
- except SkipTest as e:
- self.success = False
/usr/local/lib/python3.7/unittest/case.py in run (arguments ▶)
- with outcome.testPartExecutor(self):
- self.setUp()
- if outcome.success:
- outcome.expecting_failure = expecting_failure
- with outcome.testPartExecutor(self, isTest=True):
- testMethod()
- outcome.expecting_failure = False
- with outcome.testPartExecutor(self):
- self.tearDown()
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/s3/encryption.py in test_copy (arguments ▶)
- # copying encrypted objects is not implemented
- with self.assertRaises(botocore.exceptions.ClientError) as e:
- self.s3client.copy_object(
- Bucket=bucket,
- Key=f"{filename}.copy",
- CopySource={"Bucket": bucket, "Key": filename}
- )
- self.assertEqual(e.exception.response["Error"]["Code"], "NotImplemented")
- self.assertIsNone(e.exception.response["Error"]["Message"])
- self.assertEqual(e.exception.response["ResponseMetadata"]["HTTPStatusCode"], 501)