def test_ensure_starts_with(text, prefix, expected): assert _.ensure_starts_with(text, prefix) == expected