Commit 4aabc8d2 authored by Aurélien Bompard's avatar Aurélien Bompard

Fix the ListNew form test

parent af088b8d
Pipeline #4090246 passed with stage
in 4 minutes and 41 seconds
......@@ -86,23 +86,27 @@ class ChangeSubscriptionTest(TestCase):
class ListNewTest(TestCase):
def test_form_fields_list(self):
form = ListNew({
form = ListNew([
("mailman.most-desirable.org", "mailman.most-desirable.org")],
{
'listname': 'xyz',
'mail_host': 'mailman.most-desirable.org',
'list_owner': 'contact@mailman.most-desirable.org',
'advertise': 'abcd',
'advertised': 'True',
'description': 'The Most Desirable organization',
})
self.assertTrue(form.is_valid())
})
self.assertTrue(form.is_valid(), form.errors)
def test_form_fields_list_invalid(self):
form = ListNew({
form = ListNew([
("mailman.most-desirable.org", "mailman.most-desirable.org")],
{
'listname': 'xy#z',
'mail_host': 'mailman.most-desirable.org',
'list_owner': 'mailman.most-desirable.org',
'advertise': 'abcd',
'advertised': 'abcd',
'description': 'The Most Desirable organization',
})
})
self.assertFalse(form.is_valid())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment