Exemplo n.º 1
0
 def test_get_stores(self):
     '''
     Test - Get the certificate location contexts and their corresponding stores.
     '''
     with patch.dict(win_pki.__salt__), \
             patch('salt.modules.win_pki._cmd_run',
                   MagicMock(return_value=JSON_STORES)):
         self.assertEqual(win_pki.get_stores(), STORES)
Exemplo n.º 2
0
 def test_get_stores(self):
     '''
     Test - Get the certificate location contexts and their corresponding stores.
     '''
     with patch.dict(win_pki.__salt__):
         self.assertEqual(win_pki.get_stores(), STORES)
Exemplo n.º 3
0
 def test_get_stores(self):
     '''
     Test - Get the certificate location contexts and their corresponding stores.
     '''
     with patch.dict(win_pki.__salt__):
         self.assertEqual(win_pki.get_stores(), STORES)