Esempio n. 1
0
 def login(self):
     username = raw_input("Имя пользователя: ")
     try:
         user = User.db_get(username=username)
     except Exception:
         print 'такого пользователя нет'
     password = raw_input("Пароль: ")
     user.login(password)
     return user
Esempio n. 2
0
 def test_db_get(self):
     print 'test5'
     self.SetUp()
     User.db_get()