<s> import boto <EOL> from boto . kms . exceptions import NotFoundException <EOL> from tests . compat import unittest <EOL> class TestKMS ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . kms = boto . connect_kms ( ) <EOL> def test_list_keys ( self ) : <EOL> response = self . kms . list_keys ( ) <EOL> self . assertIn ( '<STR_LIT>' , response ) <EOL> def test_handle_not_found_exception ( self ) : <EOL> with self . assertRaises ( NotFoundException ) : <EOL> self . kms . describe_key ( <EOL> key_id = '<STR_LIT>' , <EOL> ) </s>
