class TestSchool(unittest.TestCase): def setUp(self): self.testSchool = School("", "", "ElectricPink Primary School", 300146, 15406) def tearDown(self): pass def testShouldRenameSchool(self): s = "ElectricPink Primary School" self.testSchool.setName("", "", "Renamed school") self.assertEqual(self.testSchool.Name(), "Renamed school", "Renaming school.") self.testSchool.fullName = s
def setUp(self): self.testSchool = School("", "", "ElectricPink Primary School", 300146, 15406)