aboutsummaryrefslogtreecommitdiff
path: root/apps/notes/tests/test_forms.py
blob: a9b2a7d73af366b8d95cb456fae35e5c33b94590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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())