def test_registration(self):
        self.clear_db()
        with self.client:
            rv = self.register('barney', 'abc', 'abc')
            assert 'You are the new master of this blog' in rv.data
            assert flask.session['logged_in']
Test successful registration and automatic login
dataset/ETHPy150Open eugenkiss/Simblin/test/test_views.py/TestRegistration.test_registration