def METHOD_NAME(self):
    """
    Test that anonymous_id is subbed
    """
    test_string = "Turn %%USER_ID%% into anonymous id"
    anonymous_id = Ks.anonymous_id_from_user_id(self.user.id)
    result = Ks.substitute_keywords_with_data(
        test_string, self.context,
    )
    assert '%%USER_ID%%' not in result
    assert anonymous_id in result