Fix:SES:Get Template Html part (#3504)
* SES:Get Template Html part * Linting * Linting Co-authored-by: Bert Blommers <info@bertblommers.nl>
This commit is contained in:
parent
b2adcdf518
commit
ffa7f2e41a
2 changed files with 4 additions and 2 deletions
|
|
@ -473,7 +473,9 @@ def test_create_ses_template():
|
|||
result = conn.get_template(TemplateName="MyTemplate")
|
||||
result["Template"]["TemplateName"].should.equal("MyTemplate")
|
||||
result["Template"]["SubjectPart"].should.equal("Greetings, {{name}}!")
|
||||
|
||||
result["Template"]["HtmlPart"].should.equal(
|
||||
"<h1>Hello {{name}}," "</h1><p>Your favorite animal is {{favoriteanimal}}.</p>"
|
||||
)
|
||||
# get a template which is not present
|
||||
with pytest.raises(ClientError) as ex:
|
||||
conn.get_template(TemplateName="MyFakeTemplate")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue