<reponame>annalee/alienplan<filename>submissions/tests/test_forms.py
from django.test import Client, SimpleTestCase

from submissions.forms import PanelSubmissionForm, PanelistForm


class Test_Forms(SimpleTestCase):
    def setUp(self):
        self.client = Client()

    def test_panel_submission_form(self):
        form_data = {
            'email': '<EMAIL>',
            'title': "The Force And Why It's With Us",
            'description': 'Descriptions are required',
            'notes': ''
            }
        form = PanelSubmissionForm(data=form_data)
        self.assertTrue(form.is_valid())


    def test_panelist_submission_form(self):
        form_data = {
            'email': '<EMAIL>',
            'name': "<NAME>",
            'Returning': '',
            'bio': '',
            }
        form = PanelistForm(data=form_data)
        self.assertTrue(form.is_valid())

from django.test import Client, SimpleTestCase

from submissions.forms import PanelSubmissionForm, PanelistForm


class Test_Forms(SimpleTestCase):
    def setUp(self):
        self.client = Client()

    def test_panel_submission_form(self):
        form_data = {
            'email': '<EMAIL>',
            'title': "The Force And Why It's With Us",
            'description': 'Descriptions are required',
            'notes': ''
            }
        form = PanelSubmissionForm(data=form_data)
        self.assertTrue(form.is_valid())


    def test_panelist_submission_form(self):
        form_data = {
            'email': '<EMAIL>',
            'name': "<NAME>",
            'Returning': '',
            'bio': '',
            }
        form = PanelistForm(data=form_data)
        self.assertTrue(form.is_valid())