def testPutShouldWriteQuestionToDatabase(self): question = Question.from_mention({ "id": 12345, "user": { "screen_name" : "testusername" }, "text" : "@csausbot cheese"}) key = question.put() stored_question = Question.get(key) self.assertEqual("testusername", stored_question.asker)