def METHOD_NAME(self):
    """Test un-authenticated user enrolling (link on email)"""
    User.objects.create(username="foo", email="foo@bar.baz")
    self.source.user_matching_mode = SourceUserMatchingModes.EMAIL_LINK
    # Without email, deny
    flow_manager = OAuthSourceFlowManager(
        self.source, get_request("/", user=AnonymousUser()), self.identifier, {}
    )
    action, _ = flow_manager.get_action()
    self.assertEqual(action, Action.DENY)
    flow_manager.get_flow()
    # With email
    flow_manager = OAuthSourceFlowManager(
        self.source,
        get_request("/", user=AnonymousUser()),
        self.identifier,
        {"email": "foo@bar.baz"},
    )
    action, _ = flow_manager.get_action()
    self.assertEqual(action, Action.LINK)
    flow_manager.get_flow()