def testCloseMeeting(self): #Open a Meeting meeting.open_meeting() #Close it meeting.close_current_meeting() #Should be No Meetings result = meeting.find_open_meeting_object(True) self.assertEqual(None, result)
def testFindMeeting(self): #There should be no meeting initially result = meeting.find_open_meeting_object(True) self.assertEqual(None, result) #Open a meeting meeting.open_meeting() #Find the Meeting result = meeting.find_open_meeting_object(True) self.assertNotEqual(None, result)
def testFindMeeting(self): #There should be no meeting initially result = meeting.find_open_meeting_object(True) self.assertEqual(None, result) #Open a meeting meeting.open_meeting() #Find the Meeting result = meeting.find_open_meeting_object(True) self.assertNotEqual(None,result)
def post(self): self.response.headers['Content-Type'] = 'application/json' try: meeting.open_meeting() msg = {'message': 'Meeting Created.'} self.response.set_status(201) except IOError: self.response.set_status(409) msg = {'message': 'Unable to Create Meeting.'} self.response.write(json.dumps(msg))
def post(self): self.response.headers['Content-Type'] = 'application/json' try: meeting.open_meeting() msg = {'message':'Meeting Created.'} self.response.set_status(201) except IOError: self.response.set_status(409) msg={'message':'Unable to Create Meeting.'} self.response.write(json.dumps(msg))
def testAttendence(self): #Open a Meeting meeting.open_meeting() present = ['test1', 'test2', 'test3'] excused = ['test4', 'test5', 'test6'] unexcused = ['test11', 'test12', 'test13'] meeting.take_attendence(present, excused, unexcused) #get the meeting result = meeting.Meeting.query().get() self.assertNotEqual(None, result) self.assertEqual(present, result.present) self.assertEqual(excused, result.excused) self.assertEqual(unexcused, result.unexcused)
def testAttendence(self): #Open a Meeting meeting.open_meeting() present = ['test1', 'test2', 'test3'] excused = ['test4', 'test5', 'test6'] unexcused = ['test11', 'test12', 'test13'] meeting.take_attendence(present,excused,unexcused) #get the meeting result = meeting.Meeting.query().get() self.assertNotEqual(None, result) self.assertEqual(present, result.present) self.assertEqual(excused, result.excused) self.assertEqual(unexcused, result.unexcused)
def testIsMeetingOpen(self): self.assertFalse(meeting.is_meeting_open(True)) meeting.open_meeting() self.assertTrue(meeting.is_meeting_open(True))
def testOpenMeeting(self): meeting.open_meeting() self.assertEqual(1, len(meeting.Meeting.query().fetch(2)))