def setUpClass(cls):
        start_single_mongod_instance("30000", "/MC", "MC_log")
        cls.MongoDoc = DocManager("localhost:30000")
        cls.mongo = Connection("localhost:30000")["test"]["test"]

        cls.namespaces_inc = ["test.test_include1", "test.test_include2"]
        cls.namespaces_exc = ["test.test_exclude1", "test.test_exclude2"]
        cls.choosy_docman = DocManager("localhost:30000", namespace_set=MongoDocManagerTester.namespaces_inc)
Exemple #2
0
 def setUpClass(cls):
     os.system('rm %s; touch %s' % (CONFIG, CONFIG))
     start_single_mongod_instance("30000", "/MC", "MC_log")
     cls.mongo_doc = DocManager("localhost:30000")
     cls.mongo_doc._remove()
     cls.flag = start_cluster()
     if cls.flag:
         cls.conn = Connection("%s:%s" % (HOSTNAME, PORTS_ONE['MONGOS']),
                               replicaSet="demo-repl")
 def setUpClass(cls):
     os.system('rm %s; touch %s' % (CONFIG, CONFIG))
     start_single_mongod_instance("30000", "/MC", "MC_log")
     cls.mongo_doc = DocManager("localhost:30000")
     cls.mongo_doc._remove()
     cls.flag = start_cluster()
     if cls.flag:
         cls.conn = Connection("%s:%s" % (HOSTNAME,  PORTS_ONE['MONGOS']),
                       replicaSet="demo-repl")
    def setUpClass(cls):
        start_single_mongod_instance("30000", "/MC", "MC_log")
        cls.MongoDoc = DocManager("localhost:30000")
        cls.mongo = Connection("localhost:30000")['test']['test']

        cls.namespaces_inc = ["test.test_include1", "test.test_include2"]
        cls.namespaces_exc = ["test.test_exclude1", "test.test_exclude2"]
        cls.choosy_docman = DocManager(
            "localhost:30000",
            namespace_set=MongoDocManagerTester.namespaces_inc)
 def setUpClass(cls):
     start_single_mongod_instance("30000", "/MC", "MC_log")
     cls.MongoDoc = DocManager("localhost:30000")
     cls.mongo = Connection("localhost:30000")['test']['test']
 def setUpClass(cls):
     start_single_mongod_instance("30000", "/MC", "MC_log")
     cls.MongoDoc = DocManager("localhost:30000")
     cls.mongo = Connection("localhost:30000")["test"]["test"]