def test_getQuestions(self): #check that getQuestions() returns the same amount of rows as mongo stat = len(Question.getQuestions()) mon = Connection().testing.questions mon = mon.find().count() assert mon == stat