예제 #1
0
	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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
	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)
예제 #5
0
 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))
예제 #6
0
	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))
예제 #7
0
 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)
예제 #8
0
	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)
예제 #9
0
 def testIsMeetingOpen(self):
     self.assertFalse(meeting.is_meeting_open(True))
     meeting.open_meeting()
     self.assertTrue(meeting.is_meeting_open(True))
예제 #10
0
 def testOpenMeeting(self):
     meeting.open_meeting()
     self.assertEqual(1, len(meeting.Meeting.query().fetch(2)))
예제 #11
0
	def testIsMeetingOpen(self):
		self.assertFalse(meeting.is_meeting_open(True))
		meeting.open_meeting()
		self.assertTrue(meeting.is_meeting_open(True))
예제 #12
0
	def testOpenMeeting(self):
		meeting.open_meeting()
		self.assertEqual(1, len(meeting.Meeting.query().fetch(2)))