def METHOD_NAME(self):
    """Verify that variable substitution works as intended with non-ascii characters."""
    key = 'あなた$a $b'
    text = '$' + key
    context = {'a': 'あなたあなたあなた', 'b': 'あなたhi'}
    expected_text = '$あなたあなたあなたあなた あなたhi'
    contextual_text = contextualize_text(text, context)
    assert expected_text == contextual_text