def test_login_logout(self):
        self.clear_db()
        self.register('barney', 'abc', 'abc')
        with self.client:   
            rv = self.login('barney', 'abc')
            assert 'You have been successfully logged in' in rv.data
            assert flask.session['logged_in']
            rv = self.logout()
            assert 'You have been successfully logged out' in rv.data
            assert 'logged_in' not in flask.session
Test logging in and out
dataset/ETHPy150Open eugenkiss/Simblin/test/test_views.py/TestLogin.test_login_logout