def post(self, request, *args, **kwargs):
        form_classes = self.get_form_classes()
        forms = self.get_forms(form_classes)
        all_forms_valid = True
        all_cleaned_data = {}
        invalid_forms = []
        for form_name, form in forms.iteritems():
            if not form.is_valid():
                invalid_forms.append(form_name)
                all_forms_valid = False
            else:
                if isinstance(form.cleaned_data, list):
                    # This is a formset, cleaned_data is a list of dicts
                    for instance in form.cleaned_data:
                        all_cleaned_data.update(instance)
                else:
                    all_cleaned_data.update(form.cleaned_data)
        if all_forms_valid:
            return self.form_valid(forms, all_cleaned_data)
        else:
            return self.render_invalid_response(forms)
Tests checking domain existence when boto returns an error
dataset/ETHPy150Open ofa/connect/open_connect/connect_core/utils/views.py/ProcessMultipleFormsView.post--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/boto_elasticsearch_domain_test.py/BotoElasticsearchDomainTestCase.test_that_when_checking_if_a_domain_exists_and_boto3_returns_an_error_the_domain_exists_method_returns_error