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))
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))
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))
def setUpClass(cls): setup_mongo(cls) super(TestConfigDBMongo, cls).setUpClass()