def test_schedule_delete(self): dbservices = ScheduleDBServices() dbservices.openConnection() dbservices.createEmpSchedules() dbservices.insert(sch, "testuser") dbservices.delete("testuser", sch) newSch = dbservices.get("testuser") self.assertIsNull(newSch.getId())
def test_connect_to_schedule_database(self): dbservices = ScheduleDBServices() connected = False try: dbservices.openConnection() connected = True except Exception as ex: connected = False dbservices.close() self.assertTrue(connected)