# Path: awsshell/docs.py
# def load_lazy_doc_index(filename):
# def load_doc_db(filename):
#     def __init__(self, doc_index):
#     def extract_description(self, dot_cmd):
#     def extract_param(self, dot_cmd, param_name):
# class DocRetriever(object):
# 
# Path: awsshell/db.py
# class ConcurrentDBM(object):
#     def open(cls, filename, create=False):
#     def create(cls, filename):
#     def __init__(self, db):
#     def __getitem__(self, key):
#     def __setitem__(self, key, value):
#     def close(self):


from awsshell import docs
from awsshell import db


def test_lazy_doc_factory(tmpdir):
    filename = tmpdir.join('foo.db').strpath
    doc_index = docs.load_lazy_doc_index(filename)
    assert isinstance(doc_index, docs.DocRetriever)


def test_load_doc_db(tmpdir):
    filename = tmpdir.join("foo.db").strpath
    d = docs.load_doc_db(filename)

# Path: awsshell/docs.py
# def load_lazy_doc_index(filename):
# def load_doc_db(filename):
#     def __init__(self, doc_index):
#     def extract_description(self, dot_cmd):
#     def extract_param(self, dot_cmd, param_name):
# class DocRetriever(object):
# 
# Path: awsshell/db.py
# class ConcurrentDBM(object):
#     def open(cls, filename, create=False):
#     def create(cls, filename):
#     def __init__(self, db):
#     def __getitem__(self, key):
#     def __setitem__(self, key, value):
#     def close(self):


# Path: tests/unit/test_docs.py
from awsshell import docs
from awsshell import db



def test_lazy_doc_factory(tmpdir):
    filename = tmpdir.join('foo.db').strpath
    doc_index = docs.load_lazy_doc_index(filename)
    assert isinstance(doc_index, docs.DocRetriever)


def test_load_doc_db(tmpdir):
    filename = tmpdir.join("foo.db").strpath
    d = docs.load_doc_db(filename)

    assert isinstance(d, db.ConcurrentDBM)