Exemplo n.º 1
0
 def test_invalid_consumer_form(self):
     form = EvernoteConsumerForm(data={})
     self.assertFalse(form.is_valid())
Exemplo n.º 2
0
 def test_invalid_consumer_form(self):
     form = EvernoteConsumerForm(data={})
     self.assertFalse(form.is_valid())
Exemplo n.º 3
0
 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())
Exemplo n.º 4
0
 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())