class TestInfo(unittest.TestCase): def setUp(self): self.new_info = Info("ryan.munge", "rayn.munge") def test_init(self): self.assertEqual(self.new_info.instagram, "ry_a.n") self.assertEqual(self.new_info.E_mail, "rgmunge") def test_save_info(self): ''' to test if user info is saved ''' self.new_info.save_info() self.assertEqual(len(Info.info_list), 1) def tearDown(self): Info.info_list = [] def test_delete_info(self): self.new_info.save_info() test_info = Info("angiem", "angiem") test_info.save_info() test_info.delete_info() self.assertEqual(len(Info.info_list), 1) def test_display_creds(self): self.assertEqual(Info.display_info(), Info.info)
class TestInfo(unittest.TestCase): def setUp(self): self.new_info = Info("collins.kariuki", "kariuki.collins") def test_init(self): self.assertEqual(self.new_info.face_bookp, "collins.kariuki") self.assertEqual(self.new_info.email_p, "kariuki.collins") def test_save_info(self): ''' to test if user info is saved ''' self.new_info.save_info() self.assertEqual(len(Info.info_list), 1) def tearDown(self): Info.info_list = [] def test_delete_info(self): self.new_info.save_info() test_info = Info("agens.89", "agnes.89") test_info.save_info() test_info.delete_info() self.assertEqual(len(Info.info_list), 1) def test_display_creds(self): self.assertEqual(Info.display_info(), Info.info)
class TestInfo(unittest.TestCase): def setUp(self): self.new_info =Info("amimo.matete","amimo.matete") def test_init(self): self.assertEqual(self.new_info.linkedInp,"amimo.matete") self.assertEqual(self.new_info.email_p,"matete.amimo") def test_save_info(self): ''' to test if user info is saved ''' self.new_info.save_info() self.assertEqual(len(Info.info_list),1) def tearDown(self): Info.info_list = [] def test_delete_info(self): self.new_info.save_info() test_info = Info("amimo.matete","amimo.matete") test_info.save_info() test_info.delete_info() self.assertEqual(len(Info.info_list),1)
class TestInfo(unittest.TestCase): def setUp(self): self.new_info =Info("kelvin.kiprono","kiprono.kelvin") def test_init(self): self.assertEqual(self.new_info.face_bookp,"kelvin.kiprono") self.assertEqual(self.new_info.email_p,"kiprono.kelvin") def test_save_info(self): ''' to test if user info is saved ''' self.new_info.save_info() self.assertEqual(len(Info.info_list),1) def tearDown(self): Info.info_list = [] def test_delete_info(self): self.new_info.save_info() test_info = Info("kip.43","kip.43") test_info.save_info() test_info.delete_info() self.assertEqual(len(Info.info_list),1) def test_display_creds(self): self.assertEqual(Info.display_info(),Info.info)
def test_delete_info(self): self.new_info.save_info() test_info = Info("kip.43","kip.43") test_info.save_info() test_info.delete_info() self.assertEqual(len(Info.info_list),1)
def test_delete_info(self): self.new_info.save_info() test_info = Info("amimo.matete","amimo.matete") test_info.save_info() test_info.delete_info() self.assertEqual(len(Info.info_list),1)
def test_delete_info(self): self.new_info.save_info() test_info = Info("agens.89", "agnes.89") test_info.save_info() test_info.delete_info() self.assertEqual(len(Info.info_list), 1)