def RootHandler_getTest(self): request = webapp2.Request.blank('/') response = webapp2.Response() rh = RootHandler() rh.initialize(request, response) rh.get() self.setCurrentUser("*****@*****.**", "root") rh.get()
def RootHandler_buildTemplateTest(self): request = webapp2.Request.blank('/') uri = request.uri self.setCurrentUser("*****@*****.**", "root") userId=users.get_current_user().user_id() rh = RootHandler() Biometric(height=100, target=75.0, parent=bio_key(userId)).put() rh.buildTemplate(userId,uri) Entry(weight=100.1, parent=log_key(userId)).put() rh.buildTemplate(userId,uri) db.delete(Biometric.all()) rh.buildTemplate(userId,uri)