def METHOD_NAME(certificate, expected):
    with open(os.path.join(os.path.dirname(__file__), 'fixtures', 'cbt', certificate)) as fd:
        cert_der = base64.b64decode("".join([l.strip() for l in fd.readlines()[1:-1]]))
    actual = urls.get_channel_binding_cert_hash(cert_der)
    assert actual == expected