#NEWLINE# @ mock_kms #NEWLINE# def test_enable_key_rotation( ) : #NEWLINE# #INDENT# conn = boto . kms . connect_to_region ( 'us-west-2' ) #NEWLINE# key = conn . create_key ( policy = 'my policy' , description = 'my key' , key_usage = 'ENCRYPT_DECRYPT' ) #NEWLINE# key_id = key [ 'KeyMetadata' ] [ 'KeyId' ] #NEWLINE# conn . enable_key_rotation ( key_id ) #NEWLINE# conn . get_key_rotation_status ( key_id ) [ 'KeyRotationEnabled' ] . should . equal ( True )