aboutsummaryrefslogtreecommitdiff
path: root/cros_utils/email_sender_unittest.py
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-15 21:46:53 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-15 21:46:53 +0000
commitf17a03afeb2feac54dcbcf6b66cf3b582c3d144f (patch)
tree73936aba47fe1dc71e9cc05af9747036e935608c /cros_utils/email_sender_unittest.py
parentfb05c036ea3bc0ffc7e7e530c04b0d9a066312cf (diff)
parent4e4201457e5f51a132101c611c79ccff9f713c8b (diff)
downloadtoolchain-utils-android12-mainline-tzdata3-release.tar.gz
Change-Id: I8c7d4dd2dae5ae34360857d359ae3a52d87c17f0
Diffstat (limited to 'cros_utils/email_sender_unittest.py')
-rwxr-xr-xcros_utils/email_sender_unittest.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/cros_utils/email_sender_unittest.py b/cros_utils/email_sender_unittest.py
index ae41f143..73492196 100755
--- a/cros_utils/email_sender_unittest.py
+++ b/cros_utils/email_sender_unittest.py
@@ -69,7 +69,7 @@ class Test(unittest.TestCase):
'subject': 'foo',
'identifier': 'foo',
# non-list recipients
- 'well_known_recipients': 'detective',
+ 'well_known_recipients': 'sheriff',
'text_body': 'hi',
},
]
@@ -89,8 +89,8 @@ class Test(unittest.TestCase):
def actual_write_file(file_path):
nonlocal written_obj
- self.assertTrue(file_path.startswith(email_sender.X20_PATH + '/'),
- file_path)
+ self.assertTrue(
+ file_path.startswith(email_sender.X20_PATH + '/'), file_path)
f = io.StringIO()
yield f
written_obj = json.loads(f.getvalue())
@@ -99,7 +99,7 @@ class Test(unittest.TestCase):
email_sender.EmailSender().SendX20Email(
subject='hello',
identifier='world',
- well_known_recipients=['detective'],
+ well_known_recipients=['sheriff'],
direct_recipients=['gbiv@google.com'],
text_body='text',
html_body='html',
@@ -109,7 +109,7 @@ class Test(unittest.TestCase):
written_obj, {
'subject': 'hello',
'email_identifier': 'world',
- 'well_known_recipients': ['detective'],
+ 'well_known_recipients': ['sheriff'],
'direct_recipients': ['gbiv@google.com'],
'body': 'text',
'html_body': 'html',