  def testCopy(self, mock_ec2_api):
    """Test that a copy of the snapshot is created."""
    snapshot_copy = mock_ec2_api.return_value.copy_snapshot
    snapshot_copy.return_value = aws_mocks.MOCK_CREATE_SNAPSHOT
    mock_ec2_api.return_value.get_waiter.return_value.wait.return_value = None

    copy = aws_mocks.FAKE_SNAPSHOT.Copy()
    self.assertIsInstance(copy, ebs.AWSSnapshot)
    self.assertEqual('fake-snapshot-id-copy', copy.name)
    mock_ec2_api.return_value.delete_snapshot.assert_not_called()

    _ = aws_mocks.FAKE_SNAPSHOT.Copy(delete=True)
    mock_ec2_api.return_value.delete_snapshot.assert_called()
Test that a copy of the snapshot is created.
tests/providers/aws/internal/test_ebs.py