Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/d/j/django-cached-modelforms-0.2.1/cached_modelforms/tests/test_fields.py   django-cached-modelforms(Download)
        # invalid value
        form = self.FormSingle({'obj': u'-1'})
        self.assertFalse(form.is_valid())
        self.assertTrue(form._errors['obj'])
 
        # invalid value
        form = self.FormMultiple({'obj': [unicode(self.obj1.pk), u'-1']})
        self.assertFalse(form.is_valid())
        self.assertTrue(form._errors['obj'])
 
        # invalid list
        form = self.FormMultiple({'obj': u'-1'})
        self.assertFalse(form.is_valid())

src/d/j/django-cached-modelforms-HEAD/cached_modelforms/tests/test_fields.py   django-cached-modelforms(Download)
        # invalid value
        form = self.FormSingle({'obj': u'-1'})
        self.assertFalse(form.is_valid())
        self.assertTrue(form._errors['obj'])
 
        # invalid value
        form = self.FormMultiple({'obj': [unicode(self.obj1.pk), u'-1']})
        self.assertFalse(form.is_valid())
        self.assertTrue(form._errors['obj'])
 
        # invalid list
        form = self.FormMultiple({'obj': u'-1'})
        self.assertFalse(form.is_valid())