# Path: peanut/options.py
# class ValidationError(Exception):
# class LoadingError(ValidationError):
# class Option(dict):
#     def __init__(self, msg=None):
#     def __init__(self, *args, **kwargs):
#     def __setitem__(self, key, value):
#     def __getitem__(self, name):
#     def __delitem__(self, name):
#     def __real_update(self, key, value):
#     def update(self, *args, **kwargs):
# def verify_path():
# def verify_theme():
# def verify_configs():
# def load_yaml(path):
# def load_configs(path):


import os
import unittest
from peanut.options import configs, load_configs
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""Config unittest
"""



PWD = os.path.abspath(os.path.dirname(__file__))

class TestConfig(unittest.TestCase):
    def test_load(self):
        configs.pwd = os.path.join(PWD, 'test_site')
        load_configs('config.yml')

# Path: peanut/options.py
# class ValidationError(Exception):
# class LoadingError(ValidationError):
# class Option(dict):
#     def __init__(self, msg=None):
#     def __init__(self, *args, **kwargs):
#     def __setitem__(self, key, value):
#     def __getitem__(self, name):
#     def __delitem__(self, name):
#     def __real_update(self, key, value):
#     def update(self, *args, **kwargs):
# def verify_path():
# def verify_theme():
# def verify_configs():
# def load_yaml(path):
# def load_configs(path):


# Path: test/test_config.py
import os
import unittest
from peanut.options import configs, load_configs

#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""Config unittest
"""



PWD = os.path.abspath(os.path.dirname(__file__))

class TestConfig(unittest.TestCase):
    def test_load(self):
        configs.pwd = os.path.join(PWD, 'test_site')
        load_configs('config.yml')

        self.assertEqual(configs.site['title'], "Peanut Demo")