Example #1
0
      def test_search_username(self):
          '''
          test finding user via username logic
          '''
          self.new_user.add_user()
          test_user = Users("Moringa", "1234")
          test_user.add_user()

          found_user = Users.search_username("Moringa")
          self.assertEqual(found_user.login_password, test_user.login_password)
Example #2
0
def find_user(username):
    '''
  Function that searches for users via username
  '''
    return Users.search_username(username)