コード例 #1
0
    def test_user_model(self):
        user = User()
        user.video_affinity = 0.07
        user.text_affinity = 0.03
        user.game_affinity = 0.01
        user.put()

        db_user = User.query().get()

        self.assertEquals(0.07, db_user.video_affinity)
        self.assertEquals(0.03, db_user.text_affinity)
        self.assertEquals(0.01, db_user.game_affinity)