def test_invalid(self):
        data = {
            'form-0-name': 'Joe Bloggs',
            'form-0-city': '',
            'form-0-line1': '',
            'form-0-line2': '',
            'form-0-postcode': '',
        }
        data.update(self.management_data)

        res = self.client.post('/formset/simple/', data, follow=True)
        self.assertEqual(res.status_code, 200)
        self.assertTrue(res.context['formset'].errors[0] in 'postcode')
dataset/ETHPy150Open AndrewIngram/django-extra-views/extra_views_tests/tests.py/FormSetViewTests.test_invalid/swapped operands of `in`