def test_validation(self):
        self.clear_db()
        rv = self.register('', 'password')
        assert 'You have to enter a username' in rv.data
        rv = self.register('britney spears', '')
        assert 'You have to enter a password' in rv.data
        rv = self.register('barney', 'abv', 'abc')
        assert 'Passwords must match' in rv.data
Test form validation
dataset/ETHPy150Open eugenkiss/Simblin/test/test_views.py/TestRegistration.test_validation