def setUp(self):
     drop_tables()
     initialiseDB()
     self.controller = m.Controller()
     c.question('Test1', [], 1, 1)
     c.question('Test2', [], 0, 1)
     q_id1 = self.controller.question_id('Test1')
     q_id2 = self.controller.question_id('Test2')
     self.controller.model.add_course('COMP1531', '17s2')
     c.survey([q_id1, q_id2], 'COMP1531', '17s2', 'Test Survey', '')
 def setUp(self):
     self.controller = m.Controller()
     drop_tables()
     initialiseDB()
 def setUp(self):
     self.controller = m.Controller()