def test_docs_generated():
 botocore_session = botocore.session.get_session()
 session = boto3.Session(region_name='us-east-1')
 for service_name in session.get_available_services():
  generated_docs = ServiceDocumenter(service_name, session=session).document_service()
  generated_docs = generated_docs.decode('utf-8')
  client = boto3.client(service_name, 'us-east-1')
  (yield (_assert_has_title, generated_docs, client))
  (yield (_assert_has_client_documentation, generated_docs, service_name, client))
  try:
   paginator_model = botocore_session.get_paginator_model(service_name)
   (yield (_assert_has_paginator_documentation, generated_docs, service_name, client, sorted(paginator_model._paginator_config)))
  except DataNotFoundError:
   pass
  if client.waiter_names:
   waiter_model = botocore_session.get_waiter_model(service_name)
   (yield (_assert_has_waiter_documentation, generated_docs, service_name, client, waiter_model))
  if (service_name in session.get_available_resources()):
   resource = boto3.resource(service_name, 'us-east-1')
   (yield (_assert_has_resource_documentation, generated_docs, service_name, resource))

def test_docs_generated ( ) : botocore_session = botocore . session . get_session ( ) session = boto3 . Session ( region_name = 'us-east-1' ) for service_name in session . get_available_services ( ) : generated_docs = ServiceDocumenter ( service_name , session = session ) . document_service ( ) generated_docs = generated_docs . decode ( 'utf-8' ) client = boto3 . client ( service_name , 'us-east-1' ) ( yield ( _assert_has_title , generated_docs , client ) ) ( yield ( _assert_has_client_documentation , generated_docs , service_name , client ) ) try : paginator_model = botocore_session . get_paginator_model ( service_name ) ( yield ( _assert_has_paginator_documentation , generated_docs , service_name , client , sorted ( paginator_model . _paginator_config ) ) ) except DataNotFoundError : pass if client . waiter_names : waiter_model = botocore_session . get_waiter_model ( service_name ) ( yield ( _assert_has_waiter_documentation , generated_docs , service_name , client , waiter_model ) ) if ( service_name in session . get_available_resources ( ) ) : resource = boto3 . resource ( service_name , 'us-east-1' ) ( yield ( _assert_has_resource_documentation , generated_docs , service_name , resource ) )
verify we can generate the appropriate docs for all services .