# Path: awsshell/makeindex.py
# SHORTHAND_DOC = ParamShorthandDocGen()
# def new_index():
# def index_command(index_dict, help_command):
# def write_index(output_filename=None):
# def write_doc_index(output_filename=None, db=None, help_command=None):
# def do_write_doc_index(db, help_command, close_db_on_finish):
# def _index_docs(db, help_command):
# def render_docs_for_cmd(help_command):
# def convert_rst_to_basic_text(contents):
#     def __init__(self):
#     def render(self, contents):
#     def contents(self):
#     def translate(self):
#     def depart_title(self, node):
#     def visit_literal(self, node):
#     def depart_literal(self, node):
# class FileRenderer(object):
# class BasicTextWriter(textwriter.TextWriter):
# class BasicTextTranslator(textwriter.TextTranslator):


import textwrap
from awsshell import makeindex

def test_can_convert_rst_text():
    content = textwrap.dedent("""\
        MySection
        =========

        This is some text.
        Here's a list:

        * foo
        * bar

        Literal text: ``--foo-bar``
    """)

# Path: awsshell/makeindex.py
# SHORTHAND_DOC = ParamShorthandDocGen()
# def new_index():
# def index_command(index_dict, help_command):
# def write_index(output_filename=None):
# def write_doc_index(output_filename=None, db=None, help_command=None):
# def do_write_doc_index(db, help_command, close_db_on_finish):
# def _index_docs(db, help_command):
# def render_docs_for_cmd(help_command):
# def convert_rst_to_basic_text(contents):
#     def __init__(self):
#     def render(self, contents):
#     def contents(self):
#     def translate(self):
#     def depart_title(self, node):
#     def visit_literal(self, node):
#     def depart_literal(self, node):
# class FileRenderer(object):
# class BasicTextWriter(textwriter.TextWriter):
# class BasicTextTranslator(textwriter.TextTranslator):


# Path: tests/unit/test_makeindex.py
import textwrap
from awsshell import makeindex


def test_can_convert_rst_text():
    content = textwrap.dedent("""\
        MySection
        =========

        This is some text.
        Here's a list:

        * foo
        * bar

        Literal text: ``--foo-bar``
    """)

    converted = makeindex.convert_rst_to_basic_text(content)