def account_data(self, test_value):
        # User fields
        data = {"email": test_value + "@example.com"}
        for field in ("first_name", "last_name", "username",
                      "password1", "password2"):
            if field.startswith("password"):
                value = "x" * settings.ACCOUNTS_MIN_PASSWORD_LENGTH
            else:
                value = test_value
            data[field] = value
        # Profile fields
        try:
            profile_form = ProfileForm()
            ProfileFieldsForm = profile_form.get_profile_fields_form()
            for name, field in ProfileFieldsForm().fields.items():
                if name != "id":
                    if hasattr(field, "choices"):
                        value = list(field.choices)[0][0]
                    elif isinstance(field, (DateField, DateTimeField)):
                        value = "9001-04-20"
                    else:
                        value = test_value
                    data[name] = value
        except ProfileNotConfigured:
            pass
        return data
List of object instances -> List of dicts of primitive datatypes.
dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/accounts/tests.py/AccountsTests.account_data--crossover with--dataset/ETHPy150Open OpenSlides/OpenSlides/openslides/assignments/serializers.py/FilterPollListSerializer.to_representation