예제 #1
0
    def test_terms_conditions_invalid(self):

        validation = FormValidation()

        self.assertFalse(validation.terms_conditions(''))
예제 #2
0
    def test_terms_conditions(self):

        validation = FormValidation()

        self.assertTrue(validation.terms_conditions('on'))