Beispiel #1
0
 def test_validate_session(self):
     dbfile = 'test_users_session.sqlite'
     create_test_db(dbfile, 1, 100)
     data_engine = DataEngine(self.host, self.port, dbfile)
     session_id = data_engine.validate_user('admin', '12345678')
     self.assertTrue(data_engine.validate_session(session_id))
     os.remove(dbfile)