def test_resolve_leader_valid_redirect_with_trailing_slash(): _mock_valid_redirect() leader_url = resolve_leader_url('http://master.example.com:5050/') assert leader_url == "http://leader.example.com:5050"
def test_resolve_leader_valid_redirect(): _mock_valid_redirect() leader_url = resolve_leader_url('http://master.example.com:5050') assert leader_url == "http://leader.example.com:5050"