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

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

src/d/j/django-oscar-HEAD/tests/integration/address/form_tests.py   django-oscar(Download)
        post_data = data.copy()
        post_data['country'] = self.country.iso_3166_1_a2
        form = forms.UserAddressForm(self.user, post_data, instance=duplicate)
        self.assertFalse(form.is_valid())
        self.assertTrue(len(form.errors['__all__']) > 0)