def test_ask(): c = get_cat() q = Question.create(c, "test question", get_user())
def ask(self, text, category, user, **kwargs): cat = Category.get(category) u = User.get(user) question = Question.create(cat, text, u) return str(question.question_id)