'Test that anonymous_id is subbed'

def test_anonymous_id_sub(self):

    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)
    self.assertNotIn('%%USER_ID%%', result)
    self.assertIn(anonymous_id, result)
