# Path: app/__metadata__.py
# APP_NAME = 'LXDUI'
# APP_CLI_CMD = 'lxdui'
# VERSION = '2.2'
# GIT_URL = 'https://github.com/AdaptiveScale/lxdui.git'
# LXD_URL = 'http://localhost:8443'
# LICENSE = 'Apache 2.0'
# AUTHOR = 'AdaptiveScale, Inc.'
# AUTHOR_URL = 'http://www.adaptivescale.com'
# AUTHOR_EMAIL = 'info@adaptivescale.com'
# KEYWORDS = 'lxc lxc-containers lxd'
# IMAGE_HUB = 'http://hub.kuti.io'
# AUTO_LOAD_CONFIG = True
# DEFAULT_CONFIG_FORMAT = 'ini'


from app import __metadata__ as meta
import app.lib.conf as conf
import app.lib.log as logger
import os
import pathlib
import time
import configparser
import unittest
import logging
        self.assertIsInstance(l, logger.Log)

    def test_external_config_fnf(self):
        # assert = FileNotFoundError
        with self.assertRaises(FileNotFoundError):
            conf.Config(conf='../conf/lxdui.conf.bad')

    def test_external_config_empty_file(self):
        # assert = FileNotFoundError
        file = '../conf/lxdui.conf'
        if pathlib.Path(file).exists():
            os.remove(file)
        with self.assertRaises(Exception):
            conf.Config(conf='../conf/lxdui.conf.empty')

    def test_external_config(self):
        # assert = Config object
        c = conf.Config(conf='../conf/lxdui.conf')
        self.assertIsInstance(c, conf.Config)


    def test_ini_config(self):
        # assert = Config object
        c = conf.Config()
        self.assertIsInstance(c, conf.Config)

    def test_meta_config(self):
        # Tests the case when no conf file exists
        # assert = Config object (using default config from meta)
        file = '../conf/lxdui.conf'

# Path: app/__metadata__.py
# APP_NAME = 'LXDUI'
# APP_CLI_CMD = 'lxdui'
# VERSION = '2.2'
# GIT_URL = 'https://github.com/AdaptiveScale/lxdui.git'
# LXD_URL = 'http://localhost:8443'
# LICENSE = 'Apache 2.0'
# AUTHOR = 'AdaptiveScale, Inc.'
# AUTHOR_URL = 'http://www.adaptivescale.com'
# AUTHOR_EMAIL = 'info@adaptivescale.com'
# KEYWORDS = 'lxc lxc-containers lxd'
# IMAGE_HUB = 'http://hub.kuti.io'
# AUTO_LOAD_CONFIG = True
# DEFAULT_CONFIG_FORMAT = 'ini'


# Path: tests/test_conf.py
from app import __metadata__ as meta
import app.lib.conf as conf
import app.lib.log as logger
import os
import pathlib
import time
import configparser
import unittest
import logging

        self.assertIsInstance(l, logger.Log)

    def test_external_config_fnf(self):
        # assert = FileNotFoundError
        with self.assertRaises(FileNotFoundError):
            conf.Config(conf='../conf/lxdui.conf.bad')

    def test_external_config_empty_file(self):
        # assert = FileNotFoundError
        file = '../conf/lxdui.conf'
        if pathlib.Path(file).exists():
            os.remove(file)
        with self.assertRaises(Exception):
            conf.Config(conf='../conf/lxdui.conf.empty')

    def test_external_config(self):
        # assert = Config object
        c = conf.Config(conf='../conf/lxdui.conf')
        self.assertIsInstance(c, conf.Config)


    def test_ini_config(self):
        # assert = Config object
        c = conf.Config()
        self.assertIsInstance(c, conf.Config)

    def test_meta_config(self):
        # Tests the case when no conf file exists
        # assert = Config object (using default config from meta)
        file = '../conf/lxdui.conf'

        if pathlib.Path(file).exists():