aboutsummaryrefslogtreecommitdiff
path: root/apps/notes/tests/test_forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/notes/tests/test_forms.py')
-rw-r--r--apps/notes/tests/test_forms.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/notes/tests/test_forms.py b/apps/notes/tests/test_forms.py
new file mode 100644
index 0000000..a9b2a7d
--- /dev/null
+++ b/apps/notes/tests/test_forms.py
@@ -0,0 +1,17 @@
+from django.test import TestCase
+from notes.forms import NoteForm
+
+
+class NoteFormTests(TestCase):
+ def test_forms(self):
+ form_data = {
+ 'title': 'My Note',
+ 'body_text': 'Body of the note',
+ 'body_html': '<p>Body of the note</p>',
+ 'body_qjson': '',
+ 'notebook': '',
+ 'url': '',
+ 'tags': 'three word tag, tag'
+ }
+ form = NoteForm(data=form_data)
+ self.assertTrue(form.is_valid())