# Path: tests/acceptance/base_acceptance_test.py
# class BaseAcceptanceTest(object):
# 
#     @classmethod
#     def setup_class(cls):
#         cls.connection = Connection()
# 
#     @classmethod
#     def teardown_class(cls):
#         cls.connection.disconnect()


import os
import subprocess
import tests.acceptance.manage.ensure_indexes_documents
from tests.acceptance.base_acceptance_test import BaseAcceptanceTest



def run_ensure_indexes():
    """Run ensure_indexes.py with the example documents.
    """
    os.environ['PYTHONPATH'] = os.getcwd()
    process_args = [
        'python',
        'scalymongo/manage/ensure_indexes.py',
        'tests.acceptance.manage.ensure_indexes_documents',
        'localhost:27017',
    ]
    return subprocess.check_call(process_args)


class TestEnsureIndex(BaseAcceptanceTest):

    @classmethod
    def setup_class(cls):

# Path: tests/acceptance/base_acceptance_test.py
# class BaseAcceptanceTest(object):
# 
#     @classmethod
#     def setup_class(cls):
#         cls.connection = Connection()
# 
#     @classmethod
#     def teardown_class(cls):
#         cls.connection.disconnect()


# Path: tests/acceptance/manage/test_ensure_indexes.py
import os
import subprocess
import tests.acceptance.manage.ensure_indexes_documents
from tests.acceptance.base_acceptance_test import BaseAcceptanceTest




def run_ensure_indexes():
    """Run ensure_indexes.py with the example documents.
    """
    os.environ['PYTHONPATH'] = os.getcwd()
    process_args = [
        'python',
        'scalymongo/manage/ensure_indexes.py',
        'tests.acceptance.manage.ensure_indexes_documents',
        'localhost:27017',
    ]
    return subprocess.check_call(process_args)


class TestEnsureIndex(BaseAcceptanceTest):

    @classmethod
    def setup_class(cls):

        BaseAcceptanceTest.setup_class()