Here's the fixed code. There were a lot of syntax errors here. In future, please actually run the tests before you submit a merge proposal!
class ListNewTest(unittest.TestCase):
def test_form_fields_list(self): form = ListNew({ 'listname': 'xyz', 'mail_host': 'mailman.most-desirable.org', 'list_owner': '<email address hidden>', 'advertise': 'abcd', 'description': 'The Most Desirable organization', }) self.assertTrue(form.is_valid)
def test_form_fields_list_invalid(self): form = ListNew({ 'listname': 'xy#z', 'mail_host': 'mailman.most-desirable.org', 'list_owner': 'mailman.most-desirable.org', 'advertise': 'abcd', 'description': 'The Most Desirable organization', }) self.assertFalse(form.is_valid())
« Back to merge proposal
Here's the fixed code. There were a lot of syntax errors here. In future, please actually run the tests before you submit a merge proposal!
class ListNewTest( unittest. TestCase) :
def test_form_ fields_ list(self) :
'listname' : 'xyz',
'mail_ host': 'mailman. most-desirable. org',
'list_ owner': '<email address hidden>',
'advertise ': 'abcd',
'descripti on': 'The Most Desirable organization',
self.assertTru e(form. is_valid)
form = ListNew({
})
def test_form_ fields_ list_invalid( self):
' listname' : 'xy#z',
' mail_host' : 'mailman. most-desirable. org',
' list_owner' : 'mailman. most-desirable. org',
' advertise' : 'abcd',
' description' : 'The Most Desirable organization',
self.assertFal se(form. is_valid( ))
form = ListNew({
})