'Test for 403 error code when the url'

@override_settings(OPENID_PROVIDER_TRUSTED_ROOTS=['http://apps.cs50.edx.org'])
@skipUnless((settings.FEATURES.get('AUTH_USE_OPENID') and settings.FEATURES.get('AUTH_USE_OPENID_PROVIDER')), 'OpenID    not    enabled')
def test_invalid_return_url(self):

    self.attempt_login(403, return_to='http://apps.cs50.edx.or')
