Ejemplo n.º 1
0
    def setup(self):
        self.session = Session.create()
        self.session.username = self.username
        self.session.password = self.password
        self.session.vd = str(randint(10000, 100000))
        self.client.conn.base_url = '{0}/vd{1}'.format(
            self.client.conn.BBS_URL, self.session.vd)

        self.params = {'type': 2}
        self.body = {'id': self.username, 'pw': self.password}
Ejemplo n.º 2
0
    def setup(self):
        self.session = Session.create()
        self.session.username = self.username
        self.session.password = self.password
        self.session.vd = str(randint(10000, 100000))
        self.client.conn.base_url = '{0}/vd{1}'.format(
                self.client.conn.BBS_URL, self.session.vd)

        self.params = {'type': 2}
        self.body = {'id': self.username,
                'pw': self.password}
Ejemplo n.º 3
0
 def load_session(self, session):
     if isinstance(session, basestring):
         session = Session.create(session)
     if session:
         self.conn.load_session(session)
     self.session = session
Ejemplo n.º 4
0
 def load_session(self, session):
     if isinstance(session, basestring):
         session = Session.create(session)
     if session:
         self.conn.load_session(session)
     self.session = session