def testGetStudentsPassword(self): man = JogoManagement() self.assertEqual(man.getStudentsPassword("Escola Santa Clara"), "abcde") self.assertNotEqual(man.getStudentsPassword("Escola Santa Clara"), "abcd")
def testGetStudentsList(self): man = JogoManagement() self.assertEqual(man.getStudentsList("Escola Santa Clara"), {"Didier": "9th grade"})
def testDeleteStudentFromSchool(self): man = JogoManagement() self.assertTrue(man.deleteStudentFromSchool("Escola Santa Clara", "Damien")) self.assertFalse(man.deleteStudentFromSchool("Escola Santa Clara", "Damien"))
def testAddStudentToSchool(self): man = JogoManagement() self.assertTrue(man.addStudentToSchool("Escola Santa Clara", "Damien", "9th Grade"))