コード例 #1
0
    def test_user_exists(self):
        self.new_user = users('Florence','Nyaoke','flonyaks','p@ssw0rd1')
        self.new_user.store_user()

        for user in users.list_user:
            if(user.username==self.new_user.username and user.password == self.new_user.password):
                userlogin = user.username
            return userlogin
コード例 #2
0
    def test_user_exists(self):
        self.new_user = users('James', 'Muruiki', 'jmanes', 'paswkort')
        self.new_user.store_user()

        for user in users.list_user:
            if (user.username == self.new_user.username
                    and user.password == self.new_user.password):
                userlogin = user.username
            return userlogin
コード例 #3
0
 def setUp(self):
     '''
     Create user before every test
     '''
     self.new_user = users('James', 'Muruiki', 'jmanes', 'paswkort')
コード例 #4
0
def create_user(fname, sname, uname, password):
    '''
    Function to create a new user
    '''
    new_user = users(fname, sname, uname, password)
    return new_user
コード例 #5
0
ファイル: run.py プロジェクト: fnyaoke/passwordlocker
def create_user(firstname, secondname, username, password):
    '''
    Function to create a new user
    '''
    new_user = users(firstname, secondname, username, password)
    return new_user
コード例 #6
0
 def setUp(self):
     '''
     Create user before every test
     '''
     self.new_user = users('Florence','Nyaoke','flonyaks','p@ssw0rd1')