def test_aws_error(self):

        aws_exception = Exception("Some AWS Error")

        aws = AWSError("Cannot do XYZ", aws_exception)

        # mac os and linux produce slightly different results
        self.assertFalse(aws.resource_not_found())
    def test_aws_resource_not_found(self):

        aws_exception = Exception(
            "An error occurred (404) when calling the HeadObject operation: Not Found"
        )

        aws = AWSError("Cannot do XYZ", aws_exception)

        # mac os and linux produce slightly different results
        self.assertTrue(aws.resource_not_found())