'REQUIRED_FIELDS should be a list.'

@override_settings(AUTH_USER_MODEL=u'auth.CustomUserNonListRequiredFields')
def test_required_fields_is_list(self):

    new_io = StringIO()
    get_validation_errors(new_io, get_app(u'auth'))
    self.assertIn(u'The    REQUIRED_FIELDS    must    be    a    list    or    tuple.', new_io.getvalue())
