# -*- coding: utf-8 -*-
import unittest 
import os
import glob
from gribble.config import GribbleConfig

class ConfigTests(unittest.TestCase):

    def setUp(self):
        self.config = lambda: None
        self.config.config = 'tests/square_bracket_sections.ini'
        self.config.mode = 'bind'
        self.gribble_config = GribbleConfig(self.config)

    def test_globs(self):
        files = [os.path.realpath(x) for x in glob.glob('tests/logs/0x[0-9]*.log')]
        for file in self.gribble_config.getfilepaths():
            self.assertTrue(file in files)

if __name__ == '__main__':
    unittest.main()
