<s> from tests . unit import unittest <EOL> from boto . ses . connection import SESConnection <EOL> from boto . ses import exceptions <EOL> class SESConnectionTest ( unittest . TestCase ) : <EOL> ses = True <EOL> def setUp ( self ) : <EOL> self . ses = SESConnection ( ) <EOL> def test_get_dkim_attributes ( self ) : <EOL> response = self . ses . get_identity_dkim_attributes ( [ '<STR_LIT>' ] ) <EOL> self . assertTrue ( '<STR_LIT>' in response ) <EOL> self . assertTrue ( '<STR_LIT>' in <EOL> response [ '<STR_LIT>' ] ) <EOL> self . assertTrue ( <EOL> '<STR_LIT>' in response [ '<STR_LIT>' ] <EOL> [ '<STR_LIT>' ] ) <EOL> def test_set_identity_dkim_enabled ( self ) : <EOL> with self . assertRaises ( exceptions . SESIdentityNotVerifiedError ) : <EOL> self . ses . set_identity_dkim_enabled ( '<STR_LIT>' , True ) <EOL> def test_verify_domain_dkim ( self ) : <EOL> with self . assertRaises ( exceptions . SESDomainNotConfirmedError ) : <EOL> self . ses . verify_domain_dkim ( '<STR_LIT>' ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
