def test_no_quizless_questions(self): question_obj = QuestionPersonalStatistics.Query.all().filter().limit(17000) timeline_data = fetch_timeline_data(self.objId) for i in range(0,len(timeline_data)): for j in range(5, len(timeline_data[i])): quest_id = timeline_data[i][j][0] quiz_id = timeline_data[i][1] quizling_obj = Quizling.Query.all().filter(objectId=quiz_id) self.assertFalse(quizling_obj is None)
def test_timeline_no_empty1(self): timeline_data = fetch_timeline_data(self.objId) self.assertIsNotNone(timeline_data)
def test_timeline_correct_date_type(self): timeline_data = fetch_timeline_data(self.objId) for data in timeline_data: # self.assertTrue(type(data[3]) is datetime.datetime) self.assertTrue(type(data[3]) is unicode)
def test_timeline_no_empty2(self): # Pass certain parameters to see if the result matches expectation timeline_data = fetch_timeline_data(self.objId) for data in timeline_data: self.assertFalse(data is None)