import requests


def test_proxy(url: str, proxy: dict, headers: dict) -> bool:
    """
    A simple proxy tester to make sure a proxy is working (can see) on a website.

    Args:
        url     - URL where you want to test the proxy
        proxy   - Proxy that you want to test
        headers - Headers that you want to test with the proxy

    Returns:
        True or False
    """
    test = requests.get(url=url, headers=headers, proxies=proxy)
    if test.status_code in (302, 200):
        return True
    else:
        return False