[Merge] lp:~prakhar126/postorius/adding_dropdown_option into lp:postorius

Terri terri at toybox.ca
Wed Apr 15 22:31:31 CEST 2015


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': 'contact at mailman.most-desirable.org',
            '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())
-- 
https://code.launchpad.net/~prakhar126/postorius/adding_dropdown_option/+merge/252878
Your team Mailman Coders is subscribed to branch lp:postorius.


More information about the Mailman-coders mailing list