def test_cert_base_path(self): """ Test for retrieving cert base path """ ca_path = "/etc/tls" mock_opt = MagicMock(return_value=ca_path) with patch.dict(tls.__salt__, {"config.option": mock_opt}): self.assertEqual(tls.cert_base_path(), ca_path)
def test_cert_base_path(self): ''' Test for retrieving cert base path ''' ca_path = '/etc/tls' mock_opt = MagicMock(return_value=ca_path) with patch.dict(tls.__salt__, {'config.option': mock_opt}): self.assertEqual(tls.cert_base_path(), ca_path)
def test_cert_base_path(self): ''' Test for retrieving cert base path ''' ca_path = '/etc/tls' mock_opt = MagicMock(return_value=ca_path) with patch.dict(tls.__salt__, {'config.option': mock_opt}): self.assertEqual(tls.cert_base_path(), ca_path)