def test_logout(self): register(self.app,'test', '*****@*****.**', 'test') rv = logout(self.app) self.assertTrue("Don't have an account?" in rv.data)
def test_login(self): register(self.app,'test', '*****@*****.**', 'test') logout(self.app) rv = login(self.app, 'test', 'test') self.assertTrue("The FOSSASIA Open Event" in rv.data)
def setUp(self): self.app = Setup.create_app() with app.test_request_context(): register(self.app, 'test', '*****@*****.**', 'test')
def test_registration(self): rv = register(self.app,'test', '*****@*****.**', 'test') self.assertTrue('The FOSSASIA Open Event' in rv.data)
def test_logout(self): register(self.app, 'test', '*****@*****.**', 'test') rv = logout(self.app) self.assertTrue("Don't have an account?" in rv.data)
def test_login(self): register(self.app, 'test', '*****@*****.**', 'test') logout(self.app) rv = login(self.app, 'test', 'test') self.assertTrue("The FOSSASIA Open Event" in rv.data)
def test_registration(self): rv = register(self.app, 'test', '*****@*****.**', 'test') self.assertTrue('The FOSSASIA Open Event' in rv.data)
def test_login(self): register(self.app, "test", "*****@*****.**", "test") logout(self.app) rv = login(self.app, "test", "test") self.assertTrue("The FOSSASIA Open Event" in rv.data)
def test_logout(self): register(self.app, "test", "*****@*****.**", "test") rv = logout(self.app) self.assertTrue("Don't have an account?" in rv.data)
def test_registration(self): rv = register(self.app, "test", "*****@*****.**", "test") self.assertTrue("The FOSSASIA Open Event" in rv.data)
def setUp(self): self.app = Setup.create_app() with app.test_request_context(): register(self.app, "test", "*****@*****.**", "test")