

@patch('routes.login.facebook.facade')
def test_facebook_login(self, facade_mock):
    cmd_mock = Mock()
    cmd_mock.pending_link = False
    facade_mock.login_facebook = Mock(return_value=cmd_mock)
    response = facebook.index(Mock(), 'token')
    self.assertIsInstance(response, RedirectResponse)

dataset/ETHPy150Open renzon/tekton/backend/test/login_tests/facebook.py IndexTests.test_facebook_login/original