Exemple #1
0
 def test_commands(self):
     for distro_name in cc_ca_certs.distros:
         conf = cc_ca_certs._distro_ca_certs_configs(distro_name)
         with mock.patch.object(subp, 'subp') as mockobj:
             cc_ca_certs.update_ca_certs(conf)
             mockobj.assert_called_once_with(conf['ca_cert_update_cmd'],
                                             capture=False)
    def test_commands(self):
        mock_check_call = self.mocker.replace(util.subp,
                                              passthrough=False)
        mock_check_call(["update-ca-certificates"], capture=False)
        self.mocker.replay()

        cc_ca_certs.update_ca_certs()
Exemple #3
0
 def test_commands(self):
     with mock.patch.object(subp, 'subp') as mockobj:
         cc_ca_certs.update_ca_certs()
         mockobj.assert_called_once_with(
             ["update-ca-certificates"], capture=False)
    def test_commands(self):
        mock_check_call = self.mocker.replace(util.subp, passthrough=False)
        mock_check_call(["update-ca-certificates"], capture=False)
        self.mocker.replay()

        cc_ca_certs.update_ca_certs()
 def test_commands(self):
     with mock.patch.object(util, 'subp') as mockobj:
         cc_ca_certs.update_ca_certs()
         mockobj.assert_called_once_with(
             ["update-ca-certificates"], capture=False)