Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/f/l/flashproxy-HEAD/flashproxy/test/test_keys.py   flashproxy(Download)
import os.path
import unittest
 
from flashproxy.keys import PIN_GOOGLE_CA_CERT, PIN_GOOGLE_PUBKEY_SHA1, check_certificate_pin, temp_cert
 
class TempCertTest(unittest.TestCase):
 
    def test_temp_cert_success(self):
        fn = None
        with temp_cert(PIN_GOOGLE_CA_CERT) as ca_filename:
    def test_temp_cert_raise(self):
        fn = None
        try:
            with temp_cert(PIN_GOOGLE_CA_CERT) as ca_filename:
                raise ValueError()