Repository: getmoto/moto (python)

Issue:
SES region setting is not supported
Hi,
when trying to set the region of the SES client, it seems like it is not setting the region correctly and just defaults to the global region. 
It seems like this is a bug caused in this file:
https://github.com/getmoto/moto/blob/master/moto/ses/responses.py in line 14 where the region gets set to global instead of self.region as seen here:
https://github.com/getmoto/moto/blob/master/moto/sns/responses.py on line 23.
I am currently using version 1.21.46.


Pull request description:
SES: Ensure service is region-aware
Fixes #5842 

Patch:
diff --git a/moto/ses/models.py b/moto/ses/models.py
index 27e1e5fef..dd9c94ae6 100644
--- a/moto/ses/models.py
+++ b/moto/ses/models.py
@@ -115,7 +115,7 @@ class SESBackend(BaseBackend):
 
         from moto.core import DEFAULT_ACCOUNT_ID
         from moto.ses import ses_backends
-        ses_backend = ses_backends[DEFAULT_ACCOUNT_ID]["global"]
+        ses_backend = ses_backends[DEFAULT_ACCOUNT_ID][region]
         messages = ses_backend.sent_messages # sent_messages is a List of Message objects
 
     Note that, as this is an internal API, the exact format may differ per versions.
@@ -585,6 +585,4 @@ class SESBackend(BaseBackend):
         return attributes_by_identity
 
 
-ses_backends: Mapping[str, SESBackend] = BackendDict(
-    SESBackend, "ses", use_boto3_regions=False, additional_regions=["global"]
-)
+ses_backends: Mapping[str, SESBackend] = BackendDict(SESBackend, "ses")
diff --git a/moto/ses/responses.py b/moto/ses/responses.py
index 016ff3fc0..f36aa7601 100644
--- a/moto/ses/responses.py
+++ b/moto/ses/responses.py
@@ -11,7 +11,7 @@ class EmailResponse(BaseResponse):
 
     @property
     def backend(self):
-        return ses_backends[self.current_account]["global"]
+        return ses_backends[self.current_account][self.region]
 
     def verify_email_identity(self):
         address = self.querystring.get("EmailAddress")[0]


Test patch:
diff --git a/tests/test_ses/test_ses_boto3.py b/tests/test_ses/test_ses_boto3.py
index 0ca55c7f8..251c3d056 100644
--- a/tests/test_ses/test_ses_boto3.py
+++ b/tests/test_ses/test_ses_boto3.py
@@ -19,6 +19,15 @@ def test_verify_email_identity():
     address.should.equal("test@example.com")
 
 
+@mock_ses
+def test_identities_are_region_specific():
+    us_east = boto3.client("ses", region_name="us-east-1")
+    us_east.verify_email_identity(EmailAddress="test@example.com")
+
+    us_west = boto3.client("ses", region_name="us-west-1")
+    us_west.list_identities()["Identities"].should.have.length_of(0)
+
+
 @mock_ses
 def test_verify_email_identity_idempotency():
     conn = boto3.client("ses", region_name="us-east-1")