Ejemplo n.º 1
0
 def test_empty_link_form(self):
     form = BookmarkForm(csrf_enabled=False)
     form.process()
     form.validate()
     assert 'url' in form.errors
     assert 'name' in form.errors
Ejemplo n.º 2
0
 def test_link_form(self):
     form = BookmarkForm(csrf_enabled=False)
     form.process(name=u'example', url=u'http://www.example.com/')
     form.validate()
     assert form.errors == {}