Exemplo n.º 1
0
 def test_syncto_certificate_ca_bundle_relative_file_found(self):
     settings = MANDATORY_SETTINGS.copy()
     # Remove the mandatory setting we want to test
     digicert_ca_bundle = 'certificates/DigiCert.Global-Root-CA.crt'
     settings['certificate_ca_bundle'] = digicert_ca_bundle
     app = testapp({}, **settings)
     self.assertEqual(app.registry.settings['certificate_ca_bundle'],
                      os.path.normpath(os.path.join(
                          HERE, '..', '..', digicert_ca_bundle)))
Exemplo n.º 2
0
 def test_syncto_certificate_ca_bundle_relative_file_found(self):
     settings = MANDATORY_SETTINGS.copy()
     # Remove the mandatory setting we want to test
     digicert_ca_bundle = 'certificates/DigiCert.Global-Root-CA.crt'
     settings['certificate_ca_bundle'] = digicert_ca_bundle
     app = testapp({}, **settings)
     self.assertEqual(
         app.registry.settings['certificate_ca_bundle'],
         os.path.normpath(os.path.join(HERE, '..', '..',
                                       digicert_ca_bundle)))
Exemplo n.º 3
0
 def _get_test_app(self, settings=None):
     app = webtest.TestApp(testapp({}, **self.get_app_settings(settings)))
     app.RequestClass = cliquet_support.get_request_class(prefix="v1")
     return app