def test_hub_auth_bad_token(): hub_auth = authentication.hub_auth("bad_hub_api_key", None) assert hub_auth is None
def test_hub_auth_with_valid_payment_token(): hub_auth = authentication.hub_auth("fake_payment_api_key", None) assert hub_auth is None
def test_hub_auth(): hub_auth = authentication.hub_auth("fake_hub_api_key", None) assert hub_auth["value"] is True