# Path: alignak_app/utils/config.py
# class Settings(object):
#     def __init__(self):
#     def init_config(self):
#     def get_config(self, section, option, boolean=False):
#     def set_config(self, section, option, new_value):
#     def get_image(self, name):
#     def init_css(self):
# def open_url(endpoint='login'):  # pragma: no cover
# def get_url_endpoint_from_icon_name(icon_name):
# 
# Path: alignak_app/qobjects/common/frames.py
# def get_frame_separator(vertical=False):
#     """
#     Return a frame separator
# 
#     :param vertical: define if separator is vertical or horizontal
#     :type vertical: bool
#     :return: frame separator
#     :rtype: QFrame
#     """
# 
#     line = QFrame()
#     if vertical:
#         line.setObjectName('vseparator')
#         line.setFrameShape(QFrame.VLine)
#     else:
#         line.setObjectName('hseparator')
#         line.setFrameShape(QFrame.HLine)
# 
#     return line


import sys
import unittest2
from PyQt5.QtWidgets import QApplication, QFrame
from alignak_app.utils.config import settings
from alignak_app.qobjects.common.frames import get_frame_separator
# along with (AlignakApp).  If not, see <http://www.gnu.org/licenses/>.






class TestAppQFrame(unittest2.TestCase):
    """
        This file test the AppQFrame class.
    """

    settings.init_config()

    @classmethod
    def setUpClass(cls):
        """Create QApplication"""
        try:
            cls.app = QApplication(sys.argv)
        except:
            pass

    def test_get_frame_separator(self):
        """Get QFrame Separator"""

        under_test = get_frame_separator()

        self.assertEqual('hseparator', under_test.objectName())
        self.assertEqual(QFrame.HLine, under_test.frameShape())


# Path: alignak_app/utils/config.py
# class Settings(object):
#     def __init__(self):
#     def init_config(self):
#     def get_config(self, section, option, boolean=False):
#     def set_config(self, section, option, new_value):
#     def get_image(self, name):
#     def init_css(self):
# def open_url(endpoint='login'):  # pragma: no cover
# def get_url_endpoint_from_icon_name(icon_name):
# 
# Path: alignak_app/qobjects/common/frames.py
# def get_frame_separator(vertical=False):
#     """
#     Return a frame separator
# 
#     :param vertical: define if separator is vertical or horizontal
#     :type vertical: bool
#     :return: frame separator
#     :rtype: QFrame
#     """
# 
#     line = QFrame()
#     if vertical:
#         line.setObjectName('vseparator')
#         line.setFrameShape(QFrame.VLine)
#     else:
#         line.setObjectName('hseparator')
#         line.setFrameShape(QFrame.HLine)
# 
#     return line


# Path: test/test_common_frames.py
import sys
import unittest2
from PyQt5.QtWidgets import QApplication, QFrame
from alignak_app.utils.config import settings
from alignak_app.qobjects.common.frames import get_frame_separator

# along with (AlignakApp).  If not, see <http://www.gnu.org/licenses/>.






class TestAppQFrame(unittest2.TestCase):
    """
        This file test the AppQFrame class.
    """

    settings.init_config()

    @classmethod
    def setUpClass(cls):
        """Create QApplication"""
        try:
            cls.app = QApplication(sys.argv)
        except:
            pass

    def test_get_frame_separator(self):
        """Get QFrame Separator"""

        under_test = get_frame_separator()

        self.assertEqual('hseparator', under_test.objectName())
        self.assertEqual(QFrame.HLine, under_test.frameShape())


        under_test = get_frame_separator(vertical=True)