Implemented ListPhoneNumbersOptedOut + Tests

This commit is contained in:
Terry Cain 2017-09-20 00:03:58 +01:00
commit 1281ac86d5
No known key found for this signature in database
GPG key ID: 14D90844E4E9B9F3
2 changed files with 28 additions and 1 deletions

View file

@ -59,3 +59,13 @@ def test_check_opted_out_invalid():
# Invalid phone number
with assert_raises(ClientError):
conn.check_if_phone_number_is_opted_out(phoneNumber='+44742LALALA')
@mock_sns
def test_list_opted_out():
conn = boto3.client('sns', region_name='us-east-1')
response = conn.list_phone_numbers_opted_out()
response.should.contain('phoneNumbers')
response['phoneNumbers'].should.contain('+447420500600')
response['phoneNumbers'].should.contain('+447420505401')