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
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
def setUp(self): ''' Create user before every test ''' self.new_user = users('James', 'Muruiki', 'jmanes', 'paswkort')
def create_user(fname, sname, uname, password): ''' Function to create a new user ''' new_user = users(fname, sname, uname, password) return new_user
def create_user(firstname, secondname, username, password): ''' Function to create a new user ''' new_user = users(firstname, secondname, username, password) return new_user
def setUp(self): ''' Create user before every test ''' self.new_user = users('Florence','Nyaoke','flonyaks','p@ssw0rd1')