def test_disp_credential(self): ''' method to check if display works ''' self.new_credential.save_credential() twitter = Credential("coco", "Twitter", "coco12", "33333") twitter.save_credential() gmail = Credential("Claudine", "gmail", "Clauma", "123456") gmail.save_credential() instagram = Credential("mahoro", "instagram", "mah_oro", "00000") self.assertEqual(len(Credential.disp_credential(twitter.first_name)), 3)
def test_disp_credential(self): ''' method to check if display works ''' self.new_credential.save_credential() twitter = Credential("jojo", "Twitter", "jojo32", "44444") twitter.save_credential() gmail = Credential("joselyne", "gmail", "jose", "23456") gmail.save_credential() instagram = Credential("ingabire", "instagram", "ing_bire", "1111") self.assertEqual(len(Credential.disp_credential(twitter.first_name)), 3)
def test_disp_credential(self): ''' method to check if display works ''' self.new_credential.save_credential() twitter = Credential("Deborah", "facebook", "Debby07", "Ingabineza") twitter.save_credential() gmail = Credential("Deborah", "gmail", "Debby07", "Ingabineza") gmail.save_credential() instagram = Credential("Deborah", "instagram", "Debby07", "Ingabineza") self.assertEqual(len(Credential.disp_credential(twitter.first_name)), 3)
def test_disp_credential(self): ''' method to check if display works ''' self.new_credential.save_credential() twitter = Credential("jeanne", "facebook", "dukunde", "dukunde") twitter.save_credential() gmail = Credential("jeanne", "gmail", "dukunde", "dukunde1") gmail.save_credential() instagram = Credential("jeanne", "instagram", "dukunde", "dukunde") self.assertEqual(len(Credential.disp_credential(twitter.first_name)), 3)
def disp_credential(first_name): ''' to display all credentials stored ''' return Credential.disp_credential(first_name)