mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-12-02 10:47:18 +00:00
28 lines
637 B
Python
28 lines
637 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import unittest
|
|
|
|
import magic
|
|
|
|
from bin.packages.Paste import Paste
|
|
import bin.Keys as Keys
|
|
from bin.Helper import Process
|
|
import pubsublogger
|
|
|
|
|
|
class TestKeysModule(unittest.TestCase):
|
|
|
|
def setUp(self):
|
|
self.paste = Paste('samples/2018/01/01/keys_certificat_sample.gz')
|
|
|
|
# Section name in bin/packages/modules.cfg
|
|
self.config_section = 'Keys'
|
|
|
|
# Setup the I/O queues
|
|
p = Process(self.config_section)
|
|
|
|
|
|
def test_search_key(self):
|
|
with self.assertRaises(pubsublogger.exceptions.NoChannelError):
|
|
Keys.search_key(self.paste)
|