def testCheckExistingAccount(self): """ Function to test and check if account exist or not """ self.newAccount.saveAccount() testAccount = Credential("Ayoba", "deno", "dano") testAccount.saveAccount() existingAccount = Credential.existingAccount("Ayoba") self.assertTrue(existingAccount)
def existingAccount(creds): """ checks exist account credential """ return Credential.existingAccount(creds)