def test_name_includes_name_types(rf):
    """Verify that the name_types processors add the NAME_TYPES_CHOICES
    to the passed in request.
    """
    request = rf.get('/')
    context = name(request)
    assert dict(Name.NAME_TYPE_CHOICES) == context['name_types']
def test_name_includes_branding(rf):
    """Verify that the branding processor adds the NAME_APP_TITLE
    and NAME_ADMIN_EMAIL to the passed in request.
    """
    request = rf.get('/')
    context = name(request)
    assert context['name_app_title'] == app_settings.NAME_APP_TITLE
    assert context['name_admin_email'] == app_settings.NAME_ADMIN_EMAIL