예제 #1
0
     def test_account_exists(self):
         test2_account = Account("mwangi","njuguna","*****@*****.**","press")
         test2_account.save_account()

         account_exists = test2_account.account_exist("*****@*****.**")

         self.assertTrue(account_exists)
예제 #2
0
    def test_account_exists(self):

        self.new_account.save_account()
        test_account = Account("Migot", "Sharon", "0790437491",
                               "*****@*****.**", "MigotSharon", "12345")
        test_account.save_account()

        account_exists = Account.account_exist("0790437491")

        self.assertTrue(account_exists)
예제 #3
0
    def test_account_exists(self):

        self.new_account.save_account()
        test_account = Account("Anna", "Adhiambo", "0758579812",
                               "*****@*****.**", "AnnaAdhiambo",
                               "12345")
        test_account.save_account()

        account_exists = Account.account_exist("0758579812")

        self.assertTrue(account_exists)
예제 #4
0
    def test_account_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the account.
        '''
        self.new_account.save_account()
        test_account = Account("Test","jjjjjjjdd") # new account
        test_account.save_account()

        account_exists = Account.account_exist("Test")

        self.assertFalse(account_exists)
예제 #5
0
    def test_account_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the account.
        '''

        self.new_account.save_account()
        test_account = Account("account_name","username","password") # new contact
        test_account.save_account()

        account_exists = Account.account_exist("account_name")

        self.assertTrue(account_exists)
예제 #6
0
    def test_account_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the account.
        '''

        self.new_account.save_account()
        test_account = Account("Test", "user", "0711223344")  # new account
        test_account.save_account()

        account_exists = Account.account_exist("0711223344")

        self.assertTrue(account_exists)
예제 #7
0
    def test_account_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the account.
        '''

        self.new_account.save_account()
        test_account= Account("facebook","mwesh","2020") # new account
        test_account.save_account()

        account_exists = Account.account_exist("0711223344")

        self.assertTrue(not(account_exists))
예제 #8
0
    def test_account_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the account.
        '''

        self.new_account.save_account()
        test_account = Account("clin","twiter","565656","*****@*****.**") # new account
        test_account.save_account()

        account_exists = Account.account_exist("565656")

        self.assertTrue(account_exists)
예제 #9
0
    def test_account_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the contact.
        '''

        self.new_account.save_account()
        test_account = Account("Test","*****@*****.**","DonJohn","0711223344","233535") # new contact
        test_account.save_account()

        account_exists = Account.account_exist("*****@*****.**")

        self.assertTrue(account_exists)
예제 #10
0
    def test_account_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the account.
        '''

        self.new_account.save_account()
        test_account = Account("zelly","linkedin","00000","*****@*****.**") # new account
        test_account.save_account()

        account_exists = Account.account_exist("00000")

        self.assertTrue(account_exists)
예제 #11
0
    def test_account_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the account.
        '''

        self.new_account.save_account()
        test_account = Account("Test", "user", "0788501277", "*****@*****.**",
                               "123")  # new account
        test_account.save_account()

        account_exists = Account.account_exist("*****@*****.**")

        self.assertTrue(account_exists)
예제 #12
0
    def test_account_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the account.
        '''

        self.new_account.save_account()
        test_account = Account("irene", "facebook", "irene254",
                               "*****@*****.**")  # Creating new account
        test_account.save_account()

        account_exists = Account.account_exist("irene254")

        self.assertTrue(account_exists)
예제 #13
0
def check_existing_accounts(account_name):
    '''
    Function that check if an account exists with that account_name and return a Boolean
    '''
    return Account.account_exist(account_name)
예제 #14
0
def check_existing_users(surname):
    '''
        Function that check if a account exists with that username and return a Boolean
        '''
    return Account.account_exist(surname)
예제 #15
0
def check_if_account_exists(email):
    '''
	Function that checks if an account exists
	'''
    return Account.account_exist(email)
예제 #16
0
def check_existing_accounts(email):
    return Account.account_exist(email)
예제 #17
0
def check_existing_accounts(number):
    '''
    Function that check if a account exists with that number and return a Boolean
    '''
    return Account.account_exist(number)
예제 #18
0
def check_existing_accounts(email):
    '''
    Function that check if an account exists with that email address and return a Boolean
    '''
    return Account.account_exist(email)
예제 #19
0
def check_existing_accounts(password):
    '''
    Function that check if a account exists with that password and return a Boolean
    '''
    return Account.account_exist(password)