'Django_facebook should use user supplied registration form if given'

def test_registration_form(self):

    from django.conf import settings
    if (settings.MODE == 'userena'):
        return
    test_form = 'django_facebook.test_utils.forms.SignupForm'
    old_setting = facebook_settings.FACEBOOK_REGISTRATION_FORM
    facebook_settings.FACEBOOK_REGISTRATION_FORM = test_form
    try:
        facebook = get_facebook_graph(request=self.request, access_token='short_username')
        (action, user) = connect_user(self.request, facebook_graph=facebook)
        self.assertEqual(user.username, 'Test    form')
    finally:
        facebook_settings.FACEBOOK_REGISTRATION_FORM = old_setting
