def test_user_get_name(self): self.assertEqual( data.user_data["name"], us.getname(data.user_data["path"], (data.user_data["email"],)), ) self.assertNotEqual( data.test_data["name"], us.getname(data.user_data["path"], (data.user_data["email"],)), )
def dash(): if g.user != None: name = getname(g.user) return render_template("temp.html", name=name, email=g.user[0]) return redirect('/')
def disp(): if g.user != None: summ = getq(g.user[0])[0] return render_template("display.html", name=getname(g.user), text=summ) return redirect('/')