# Path: scalymongo/connection.py
# class Connection(MongoClient):
#     """A connection to a MongoDB database.
# 
#     This is a wrapper for a :class:`pymongo.mongo_client.MongoClient`.
# 
#     """
# 
#     def connect_document(self, document):
#         """Connect a document by creating a new type and injecting the
#         connection.
# 
#         """
#         attrs = {
#             'connection': self,
#             'database': self[document.__database__],
#             'collection': self[document.__database__][document.__collection__],
#         }
#         return type('Connected{0}'.format(document.__name__),
#                     (document,),
#                     attrs)
# 
#     @property
#     def models(self):
#         return DocumentProxy(self, get_concrete_classes())


from scalymongo import Connection


class BaseAcceptanceTest(object):

    @classmethod
    def setup_class(cls):

# Path: scalymongo/connection.py
# class Connection(MongoClient):
#     """A connection to a MongoDB database.
# 
#     This is a wrapper for a :class:`pymongo.mongo_client.MongoClient`.
# 
#     """
# 
#     def connect_document(self, document):
#         """Connect a document by creating a new type and injecting the
#         connection.
# 
#         """
#         attrs = {
#             'connection': self,
#             'database': self[document.__database__],
#             'collection': self[document.__database__][document.__collection__],
#         }
#         return type('Connected{0}'.format(document.__name__),
#                     (document,),
#                     attrs)
# 
#     @property
#     def models(self):
#         return DocumentProxy(self, get_concrete_classes())


# Path: tests/acceptance/base_acceptance_test.py
from scalymongo import Connection



class BaseAcceptanceTest(object):

    @classmethod
    def setup_class(cls):

        cls.connection = Connection()