Here are the examples of the python api mock.sentinel.config_section taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Source : test_manage_api.py
with GNU Affero General Public License v3.0
from CERT-Polska
with GNU Affero General Public License v3.0
from CERT-Polska
def test_cert_created_with_cert_and_csr_pem(self):
ca_label = 'n6-client-ca'
self.load_ca(self.context_mock, ca_label, 'client')
ca_cert = CACertificate(self.context_mock, ca_label, mock.sentinel.config_section)
cert_pem = _load_cert_pem(ca_label, '0000000000000000abcd')
csr_pem = _load_csr_pem(ca_label, 'c55fd65ffe0671c4ba19')
with self.assertRaises(TypeError):
CertificateCreated(self.context_mock, ca_cert, CREATED_ON_DT, CREATOR_CN, 'user',
mock.sentinel.hostname, mock.sentinel.db_login,
mock.sentinel.internal_o_regex,
mock.sentinel.server_comp_ou_regex,
cert_pem,
csr_pem)
def _get_cert_file_instance(self, ca_label, ca_profile, cert_serial_nr):