def test_ensure_ends_with(text, suffix, expected): assert _.ensure_ends_with(text, suffix) == expected