예제 #1
0
 def setUpClass(cls):
     setup_mongo(cls)
     cls.daemon = Daemon(CONFIG)
     cls.daemon.start()
     cls.conn = cls.connectToServer()
     cls.conn.s.settimeout(1.0) # Allow time for Astron<->MongoDB communication.
     cls.objects = cls.connectToServer()
     cls.objects.send(Datagram.create_add_range(DATABASE_PREFIX|1000000,
                                                DATABASE_PREFIX|1000010))
예제 #2
0
 def setUpClass(cls):
     setup_mongo(cls)
     cls.daemon = Daemon(CONFIG)
     cls.daemon.start()
     cls.conn = cls.connectToServer()
     cls.objects = cls.connectToServer()
     cls.objects.send(
         Datagram.create_add_range(DATABASE_PREFIX | 1000000,
                                   DATABASE_PREFIX | 1000010))
예제 #3
0
 def setUpClass(cls):
     setup_mongo(cls)
     cls.daemon = Daemon(CONFIG)
     cls.daemon.start()
     cls.conn = cls.connectToServer()
     cls.conn.s.settimeout(
         1.0)  # Allow time for Astron<->MongoDB communication.
     cls.objects = cls.connectToServer()
     cls.objects.send(
         Datagram.create_add_range(DATABASE_PREFIX | 1000000,
                                   DATABASE_PREFIX | 1000010))
예제 #4
0
 def setUpClass(cls):
     setup_mongo(cls)
     super(TestConfigDBMongo, cls).setUpClass()
예제 #5
0
 def setUpClass(cls):
     setup_mongo(cls)
     super(TestConfigDBMongo, cls).setUpClass()