'Create new forms and test internal structure'

def test_new_form(self):

    for form_data in ALL_FORMS:
        new_form = create_form_params_helper(form_data)
        for elem in form_data:
            elem_name = elem.get('name', None)
            elem_type = elem.get('type', None)
            values = new_form.get(elem_name)
            form_input_type = new_form.get_parameter_type(elem_name)
            self.assertEqual(form_input_type, elem_type)
            for value in values:
                if (elem_type == INPUT_TYPE_SELECT):
                    self.assertIn(value, elem['values'])
