def test_invalid_consumer_form(self): form = EvernoteConsumerForm(data={}) self.assertFalse(form.is_valid())
def test_valid_consumer_form(self): ev = self.create_evernote() data = {'tag': ev.tag, 'notebook': ev.notebook} form = EvernoteConsumerForm(data=data) self.assertTrue(form.is_valid())