Ejemplo n.º 1
0
	def testTomorrow(self):
		str_format = "%b %d %Y %H:%M:%S"
		one_day = timedelta(days=1)
		today = datetime.now()
		tomorrow = today + one_day
		tomorrow_str = tomorrow.strftime(str_format)
		return insertRUEvent.insertEvent(self.name,self.location,self.url,self.synopsis,
									self.category,self.target_audience,tomorrow_str)	
Ejemplo n.º 2
0
	def testYesterday(self):
		str_format = "%b %d %Y %H:%M:%S"
		one_day = timedelta(days=1)
		today = datetime.now()
		yesterday = today - one_day
		yesterday_str = yesterday.strftime(str_format)
		return insertRUEvent.insertEvent(self.name,self.location,self.url,self.synopsis,
									self.category,self.target_audience,yesterday_str)
Ejemplo n.º 3
0
	def testPartition3(self):
		self.name = "virus!virus!virus!virus!virus!virus!virus!virus!virus!virus!virus!virus!"
		return insertRUEvent.insertEvent(self.name,self.location,self.url,self.synopsis,
									self.category,self.target_audience,tomorrow_str)	
Ejemplo n.º 4
0
	def testPartition2(self):
		self.name = "ECE Annual Faculty Meeting"
		return insertRUEvent.insertEvent(self.name,self.location,self.url,self.synopsis,
									self.category,self.target_audience,yesterday_str)
Ejemplo n.º 5
0
	def testPartition1(self):
		self.name = "game1"
		return insertRUEvent.insertEvent(self.name,self.location,self.url,self.synopsis,
									self.category,self.target_audience,today_str)
Ejemplo n.º 6
0
	def testToday(self):
		str_format = "%b %d %Y %H:%M:%S"
		today = datetime.now()
		today_str = today.strftime(str_format)
		return insertRUEvent.insertEvent(self.name,self.location,self.url,self.synopsis,
									self.category,self.target_audience,today_str)