def test_get_serials(self):
        expected = ['XYZABC', '123456']
        mock = MagicMock(return_value='CertInfo\r\nSerial Number: XYZABC\r\nSerial Number: 123456\r\n')
        with patch.dict(certutil.__salt__, {'cmd.run': mock}):
            out = certutil.get_stored_cert_serials('TrustedPublisher')
            mock.assert_called_once_with('certutil.exe -store TrustedPublisher')
            self.assertEqual(expected, out)
Test getting the all the serial numbers from a store
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/win_certutil_test.py/CertUtilTestCase.test_get_serials