'Logs in and sets the session object in the db.'

def _login(self):

    self._session = uuidutils.generate_uuid()
    session = DataObject()
    session.key = self._session
    session.userName = 'sessionUserName'
    _db_content['session'][self._session] = session
    return session
