Пример #1
0
def get_from_session(db):
    session_id = get_session_id()
    request.account = None
    if session_id:
        request.account = Accounts.get_from_session(db, session_id)
 def test_get_account_from_session(self):
     account = Accounts.get_from_session(self.db, id = self.account_session.session_id)
     self.assertEqual(self.account.id, account.id)