#########################################################################################
# -*- coding: utf-8 -*-
#
# This file is part of the SKAMaster project
#
#
#
#########################################################################################
"""Contain the tests for the SKAMaster."""

# Path
import sys
import os
path = os.path.join(os.path.dirname(__file__), os.pardir)
sys.path.insert(0, os.path.abspath(path))

# Imports
import pytest
from mock import MagicMock

from PyTango import DevState

# PROTECTED REGION ID(SKAMaster.test_additional_imports) ENABLED START #
# PROTECTED REGION END #    //  SKAMaster.test_additional_imports


# Device test case
@pytest.mark.usefixtures("tango_context", "initialize_device")
# PROTECTED REGION ID(SKAMaster.test_SKAMaster_decorators) ENABLED START #
# PROTECTED REGION END #    //  SKAMaster.test_SKAMaster_decorators
class TestSKAMaster(object):
    """Test case for packet generation."""

    properties = {
        'SkaLevel': '4',
        'CentralLoggingTarget': '',
        'ElementLoggingTarget': '',
        'StorageLoggingTarget': 'localhost',
        'MetricList': 'healthState',
        'GroupDefinitions': '',
        'NrSubarrays': '16',
        'CapabilityTypes': '',
        'MaxCapabilities': '',
        }

    @classmethod
    def mocking(cls):
        """Mock external libraries."""
        # Example : Mock numpy
        # cls.numpy = SKAMaster.numpy = MagicMock()
        # PROTECTED REGION ID(SKAMaster.test_mocking) ENABLED START #
        # PROTECTED REGION END #    //  SKAMaster.test_mocking

    def test_properties(self, tango_context):
        # Test the properties
        # PROTECTED REGION ID(SKAMaster.test_properties) ENABLED START #
        # PROTECTED REGION END #    //  SKAMaster.test_properties
        pass

    # PROTECTED REGION ID(SKAMaster.test_State_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_State_decorators
    def test_State(self, tango_context):
        """Test for State"""
        # PROTECTED REGION ID(SKAMaster.test_State) ENABLED START #
        assert tango_context.device.State() == DevState.UNKNOWN
        # PROTECTED REGION END #    //  SKAMaster.test_State

    # PROTECTED REGION ID(SKAMaster.test_Status_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_Status_decorators
    def test_Status(self, tango_context):
        """Test for Status"""
        # PROTECTED REGION ID(SKAMaster.test_Status) ENABLED START #
        assert tango_context.device.Status() == "The device is in UNKNOWN state."
        # PROTECTED REGION END #    //  SKAMaster.test_Status

    # PROTECTED REGION ID(SKAMaster.test_GetMetrics_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_GetMetrics_decorators
    def test_GetMetrics(self, tango_context):
        """Test for GetMetrics"""
        # PROTECTED REGION ID(SKAMaster.test_GetMetrics) ENABLED START #
        assert tango_context.device.GetMetrics() == ""
        # PROTECTED REGION END #    //  SKAMaster.test_GetMetrics

    # PROTECTED REGION ID(SKAMaster.test_ToJson_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_ToJson_decorators
    def test_ToJson(self, tango_context):
        """Test for ToJson"""
        # PROTECTED REGION ID(SKAMaster.test_ToJson) ENABLED START #
        assert tango_context.device.ToJson("") == ""
        # PROTECTED REGION END #    //  SKAMaster.test_ToJson

    # PROTECTED REGION ID(SKAMaster.test_GetVersionInfo_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_GetVersionInfo_decorators
    def test_GetVersionInfo(self, tango_context):
        """Test for GetVersionInfo"""
        # PROTECTED REGION ID(SKAMaster.test_GetVersionInfo) ENABLED START #
        assert tango_context.device.GetVersionInfo() == [""]
        # PROTECTED REGION END #    //  SKAMaster.test_GetVersionInfo

    # PROTECTED REGION ID(SKAMaster.test_isCapabilityAchievable_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_isCapabilityAchievable_decorators
    def test_isCapabilityAchievable(self, tango_context):
        """Test for isCapabilityAchievable"""
        # PROTECTED REGION ID(SKAMaster.test_isCapabilityAchievable) ENABLED START #
        assert tango_context.device.isCapabilityAchievable([[0], [""]]) == False
        # PROTECTED REGION END #    //  SKAMaster.test_isCapabilityAchievable

    # PROTECTED REGION ID(SKAMaster.test_Reset_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_Reset_decorators
    def test_Reset(self, tango_context):
        """Test for Reset"""
        # PROTECTED REGION ID(SKAMaster.test_Reset) ENABLED START #
        assert tango_context.device.Reset() == None
        # PROTECTED REGION END #    //  SKAMaster.test_Reset


    # PROTECTED REGION ID(SKAMaster.test_elementLoggerAddress_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_elementLoggerAddress_decorators
    def test_elementLoggerAddress(self, tango_context):
        """Test for elementLoggerAddress"""
        # PROTECTED REGION ID(SKAMaster.test_elementLoggerAddress) ENABLED START #
        assert tango_context.device.elementLoggerAddress == ''
        # PROTECTED REGION END #    //  SKAMaster.test_elementLoggerAddress

    # PROTECTED REGION ID(SKAMaster.test_elementAlarmAddress_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_elementAlarmAddress_decorators
    def test_elementAlarmAddress(self, tango_context):
        """Test for elementAlarmAddress"""
        # PROTECTED REGION ID(SKAMaster.test_elementAlarmAddress) ENABLED START #
        assert tango_context.device.elementAlarmAddress == ''
        # PROTECTED REGION END #    //  SKAMaster.test_elementAlarmAddress

    # PROTECTED REGION ID(SKAMaster.test_elementTelStateAddress_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_elementTelStateAddress_decorators
    def test_elementTelStateAddress(self, tango_context):
        """Test for elementTelStateAddress"""
        # PROTECTED REGION ID(SKAMaster.test_elementTelStateAddress) ENABLED START #
        assert tango_context.device.elementTelStateAddress == ''
        # PROTECTED REGION END #    //  SKAMaster.test_elementTelStateAddress

    # PROTECTED REGION ID(SKAMaster.test_elementDatabaseAddress_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_elementDatabaseAddress_decorators
    def test_elementDatabaseAddress(self, tango_context):
        """Test for elementDatabaseAddress"""
        # PROTECTED REGION ID(SKAMaster.test_elementDatabaseAddress) ENABLED START #
        assert tango_context.device.elementDatabaseAddress == ''
        # PROTECTED REGION END #    //  SKAMaster.test_elementDatabaseAddress

    # PROTECTED REGION ID(SKAMaster.test_buildState_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_buildState_decorators
    def test_buildState(self, tango_context):
        """Test for buildState"""
        # PROTECTED REGION ID(SKAMaster.test_buildState) ENABLED START #
        assert tango_context.device.buildState == ''
        # PROTECTED REGION END #    //  SKAMaster.test_buildState

    # PROTECTED REGION ID(SKAMaster.test_versionId_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_versionId_decorators
    def test_versionId(self, tango_context):
        """Test for versionId"""
        # PROTECTED REGION ID(SKAMaster.test_versionId) ENABLED START #
        assert tango_context.device.versionId == ''
        # PROTECTED REGION END #    //  SKAMaster.test_versionId

    # PROTECTED REGION ID(SKAMaster.test_centralLoggingLevel_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_centralLoggingLevel_decorators
    def test_centralLoggingLevel(self, tango_context):
        """Test for centralLoggingLevel"""
        # PROTECTED REGION ID(SKAMaster.test_centralLoggingLevel) ENABLED START #
        assert tango_context.device.centralLoggingLevel == 0
        # PROTECTED REGION END #    //  SKAMaster.test_centralLoggingLevel

    # PROTECTED REGION ID(SKAMaster.test_elementLoggingLevel_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_elementLoggingLevel_decorators
    def test_elementLoggingLevel(self, tango_context):
        """Test for elementLoggingLevel"""
        # PROTECTED REGION ID(SKAMaster.test_elementLoggingLevel) ENABLED START #
        assert tango_context.device.elementLoggingLevel == 0
        # PROTECTED REGION END #    //  SKAMaster.test_elementLoggingLevel

    # PROTECTED REGION ID(SKAMaster.test_storageLoggingLevel_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_storageLoggingLevel_decorators
    def test_storageLoggingLevel(self, tango_context):
        """Test for storageLoggingLevel"""
        # PROTECTED REGION ID(SKAMaster.test_storageLoggingLevel) ENABLED START #
        assert tango_context.device.storageLoggingLevel == 0
        # PROTECTED REGION END #    //  SKAMaster.test_storageLoggingLevel

    # PROTECTED REGION ID(SKAMaster.test_healthState_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_healthState_decorators
    def test_healthState(self, tango_context):
        """Test for healthState"""
        # PROTECTED REGION ID(SKAMaster.test_healthState) ENABLED START #
        assert tango_context.device.healthState == 0
        # PROTECTED REGION END #    //  SKAMaster.test_healthState

    # PROTECTED REGION ID(SKAMaster.test_adminMode_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_adminMode_decorators
    def test_adminMode(self, tango_context):
        """Test for adminMode"""
        # PROTECTED REGION ID(SKAMaster.test_adminMode) ENABLED START #
        assert tango_context.device.adminMode == 0
        # PROTECTED REGION END #    //  SKAMaster.test_adminMode

    # PROTECTED REGION ID(SKAMaster.test_controlMode_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_controlMode_decorators
    def test_controlMode(self, tango_context):
        """Test for controlMode"""
        # PROTECTED REGION ID(SKAMaster.test_controlMode) ENABLED START #
        assert tango_context.device.controlMode == 0
        # PROTECTED REGION END #    //  SKAMaster.test_controlMode

    # PROTECTED REGION ID(SKAMaster.test_simulationMode_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_simulationMode_decorators
    def test_simulationMode(self, tango_context):
        """Test for simulationMode"""
        # PROTECTED REGION ID(SKAMaster.test_simulationMode) ENABLED START #
        assert tango_context.device.simulationMode == False
        # PROTECTED REGION END #    //  SKAMaster.test_simulationMode

    # PROTECTED REGION ID(SKAMaster.test_testMode_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_testMode_decorators
    def test_testMode(self, tango_context):
        """Test for testMode"""
        # PROTECTED REGION ID(SKAMaster.test_testMode) ENABLED START #
        assert tango_context.device.testMode == ''
        # PROTECTED REGION END #    //  SKAMaster.test_testMode

    # PROTECTED REGION ID(SKAMaster.test_maxCapabilities_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_maxCapabilities_decorators
    def test_maxCapabilities(self, tango_context):
        """Test for maxCapabilities"""
        # PROTECTED REGION ID(SKAMaster.test_maxCapabilities) ENABLED START #
        assert tango_context.device.maxCapabilities == ('',)
        # PROTECTED REGION END #    //  SKAMaster.test_maxCapabilities

    # PROTECTED REGION ID(SKAMaster.test_availableCapabilities_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_availableCapabilities_decorators
    def test_availableCapabilities(self, tango_context):
        """Test for availableCapabilities"""
        # PROTECTED REGION ID(SKAMaster.test_availableCapabilities) ENABLED START #
        assert tango_context.device.availableCapabilities == ('',)
        # PROTECTED REGION END #    //  SKAMaster.test_availableCapabilities



#########################################################################################
# -*- coding: utf-8 -*-
#
# This file is part of the SKAMaster project
#
#
#
#########################################################################################
"""Contain the tests for the SKAMaster."""

# Path
import sys
import os
path = os.path.join(os.path.dirname(__file__), os.pardir)
sys.path.insert(0, os.path.abspath(path))

# Imports
import pytest
from mock import MagicMock

from PyTango import DevState

# PROTECTED REGION ID(SKAMaster.test_additional_imports) ENABLED START #
# PROTECTED REGION END #    //  SKAMaster.test_additional_imports


# Device test case
@pytest.mark.usefixtures("tango_context", "initialize_device")
# PROTECTED REGION ID(SKAMaster.test_SKAMaster_decorators) ENABLED START #
# PROTECTED REGION END #    //  SKAMaster.test_SKAMaster_decorators
class TestSKAMaster(object):
    """Test case for packet generation."""

    properties = {
        'SkaLevel': '4',
        'CentralLoggingTarget': '',
        'ElementLoggingTarget': '',
        'StorageLoggingTarget': 'localhost',
        'MetricList': 'healthState',
        'GroupDefinitions': '',
        'NrSubarrays': '16',
        'CapabilityTypes': '',
        'MaxCapabilities': '',
        }

    @classmethod
    def mocking(cls):
        """Mock external libraries."""
        # Example : Mock numpy
        # cls.numpy = SKAMaster.numpy = MagicMock()
        # PROTECTED REGION ID(SKAMaster.test_mocking) ENABLED START #
        # PROTECTED REGION END #    //  SKAMaster.test_mocking

    def test_properties(self, tango_context):
        # Test the properties
        # PROTECTED REGION ID(SKAMaster.test_properties) ENABLED START #
        # PROTECTED REGION END #    //  SKAMaster.test_properties
        pass

    # PROTECTED REGION ID(SKAMaster.test_State_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_State_decorators
    def test_State(self, tango_context):
        """Test for State"""
        # PROTECTED REGION ID(SKAMaster.test_State) ENABLED START #
        assert tango_context.device.State() == DevState.UNKNOWN
        # PROTECTED REGION END #    //  SKAMaster.test_State

    # PROTECTED REGION ID(SKAMaster.test_Status_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_Status_decorators
    def test_Status(self, tango_context):
        """Test for Status"""
        # PROTECTED REGION ID(SKAMaster.test_Status) ENABLED START #
        assert tango_context.device.Status() == "The device is in UNKNOWN state."
        # PROTECTED REGION END #    //  SKAMaster.test_Status

    # PROTECTED REGION ID(SKAMaster.test_GetMetrics_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_GetMetrics_decorators
    def test_GetMetrics(self, tango_context):
        """Test for GetMetrics"""
        # PROTECTED REGION ID(SKAMaster.test_GetMetrics) ENABLED START #
        assert tango_context.device.GetMetrics() == ""
        # PROTECTED REGION END #    //  SKAMaster.test_GetMetrics

    # PROTECTED REGION ID(SKAMaster.test_ToJson_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_ToJson_decorators
    def test_ToJson(self, tango_context):
        """Test for ToJson"""
        # PROTECTED REGION ID(SKAMaster.test_ToJson) ENABLED START #
        assert tango_context.device.ToJson("") == ""
        # PROTECTED REGION END #    //  SKAMaster.test_ToJson

    # PROTECTED REGION ID(SKAMaster.test_GetVersionInfo_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_GetVersionInfo_decorators
    def test_GetVersionInfo(self, tango_context):
        """Test for GetVersionInfo"""
        # PROTECTED REGION ID(SKAMaster.test_GetVersionInfo) ENABLED START #
        assert tango_context.device.GetVersionInfo() == [""]
        # PROTECTED REGION END #    //  SKAMaster.test_GetVersionInfo

    # PROTECTED REGION ID(SKAMaster.test_isCapabilityAchievable_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_isCapabilityAchievable_decorators
    def test_isCapabilityAchievable(self, tango_context):
        """Test for isCapabilityAchievable"""
        # PROTECTED REGION ID(SKAMaster.test_isCapabilityAchievable) ENABLED START #
        assert tango_context.device.isCapabilityAchievable([[0], [""]]) == False
        # PROTECTED REGION END #    //  SKAMaster.test_isCapabilityAchievable

    # PROTECTED REGION ID(SKAMaster.test_Reset_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_Reset_decorators
    def test_Reset(self, tango_context):
        """Test for Reset"""
        # PROTECTED REGION ID(SKAMaster.test_Reset) ENABLED START #
        assert tango_context.device.Reset() == None
        # PROTECTED REGION END #    //  SKAMaster.test_Reset


    # PROTECTED REGION ID(SKAMaster.test_elementLoggerAddress_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_elementLoggerAddress_decorators
    def test_elementLoggerAddress(self, tango_context):
        """Test for elementLoggerAddress"""
        # PROTECTED REGION ID(SKAMaster.test_elementLoggerAddress) ENABLED START #
        assert tango_context.device.elementLoggerAddress == ''
        # PROTECTED REGION END #    //  SKAMaster.test_elementLoggerAddress

    # PROTECTED REGION ID(SKAMaster.test_elementAlarmAddress_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_elementAlarmAddress_decorators
    def test_elementAlarmAddress(self, tango_context):
        """Test for elementAlarmAddress"""
        # PROTECTED REGION ID(SKAMaster.test_elementAlarmAddress) ENABLED START #
        assert tango_context.device.elementAlarmAddress == ''
        # PROTECTED REGION END #    //  SKAMaster.test_elementAlarmAddress

    # PROTECTED REGION ID(SKAMaster.test_elementTelStateAddress_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_elementTelStateAddress_decorators
    def test_elementTelStateAddress(self, tango_context):
        """Test for elementTelStateAddress"""
        # PROTECTED REGION ID(SKAMaster.test_elementTelStateAddress) ENABLED START #
        assert tango_context.device.elementTelStateAddress == ''
        # PROTECTED REGION END #    //  SKAMaster.test_elementTelStateAddress

    # PROTECTED REGION ID(SKAMaster.test_elementDatabaseAddress_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_elementDatabaseAddress_decorators
    def test_elementDatabaseAddress(self, tango_context):
        """Test for elementDatabaseAddress"""
        # PROTECTED REGION ID(SKAMaster.test_elementDatabaseAddress) ENABLED START #
        assert tango_context.device.elementDatabaseAddress == ''
        # PROTECTED REGION END #    //  SKAMaster.test_elementDatabaseAddress

    # PROTECTED REGION ID(SKAMaster.test_buildState_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_buildState_decorators
    def test_buildState(self, tango_context):
        """Test for buildState"""
        # PROTECTED REGION ID(SKAMaster.test_buildState) ENABLED START #
        assert tango_context.device.buildState == ''
        # PROTECTED REGION END #    //  SKAMaster.test_buildState

    # PROTECTED REGION ID(SKAMaster.test_versionId_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_versionId_decorators
    def test_versionId(self, tango_context):
        """Test for versionId"""
        # PROTECTED REGION ID(SKAMaster.test_versionId) ENABLED START #
        assert tango_context.device.versionId == ''
        # PROTECTED REGION END #    //  SKAMaster.test_versionId

    # PROTECTED REGION ID(SKAMaster.test_centralLoggingLevel_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_centralLoggingLevel_decorators
    def test_centralLoggingLevel(self, tango_context):
        """Test for centralLoggingLevel"""
        # PROTECTED REGION ID(SKAMaster.test_centralLoggingLevel) ENABLED START #
        assert tango_context.device.centralLoggingLevel == 0
        # PROTECTED REGION END #    //  SKAMaster.test_centralLoggingLevel

    # PROTECTED REGION ID(SKAMaster.test_elementLoggingLevel_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_elementLoggingLevel_decorators
    def test_elementLoggingLevel(self, tango_context):
        """Test for elementLoggingLevel"""
        # PROTECTED REGION ID(SKAMaster.test_elementLoggingLevel) ENABLED START #
        assert tango_context.device.elementLoggingLevel == 0
        # PROTECTED REGION END #    //  SKAMaster.test_elementLoggingLevel

    # PROTECTED REGION ID(SKAMaster.test_storageLoggingLevel_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_storageLoggingLevel_decorators
    def test_storageLoggingLevel(self, tango_context):
        """Test for storageLoggingLevel"""
        # PROTECTED REGION ID(SKAMaster.test_storageLoggingLevel) ENABLED START #
        assert tango_context.device.storageLoggingLevel == 0
        # PROTECTED REGION END #    //  SKAMaster.test_storageLoggingLevel

    # PROTECTED REGION ID(SKAMaster.test_healthState_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_healthState_decorators
    def test_healthState(self, tango_context):
        """Test for healthState"""
        # PROTECTED REGION ID(SKAMaster.test_healthState) ENABLED START #
        assert tango_context.device.healthState == 0
        # PROTECTED REGION END #    //  SKAMaster.test_healthState

    # PROTECTED REGION ID(SKAMaster.test_adminMode_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_adminMode_decorators
    def test_adminMode(self, tango_context):
        """Test for adminMode"""
        # PROTECTED REGION ID(SKAMaster.test_adminMode) ENABLED START #
        assert tango_context.device.adminMode == 0
        # PROTECTED REGION END #    //  SKAMaster.test_adminMode

    # PROTECTED REGION ID(SKAMaster.test_controlMode_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_controlMode_decorators
    def test_controlMode(self, tango_context):
        """Test for controlMode"""
        # PROTECTED REGION ID(SKAMaster.test_controlMode) ENABLED START #
        assert tango_context.device.controlMode == 0
        # PROTECTED REGION END #    //  SKAMaster.test_controlMode

    # PROTECTED REGION ID(SKAMaster.test_simulationMode_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_simulationMode_decorators
    def test_simulationMode(self, tango_context):
        """Test for simulationMode"""
        # PROTECTED REGION ID(SKAMaster.test_simulationMode) ENABLED START #
        assert tango_context.device.simulationMode == False
        # PROTECTED REGION END #    //  SKAMaster.test_simulationMode

    # PROTECTED REGION ID(SKAMaster.test_testMode_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_testMode_decorators
    def test_testMode(self, tango_context):
        """Test for testMode"""
        # PROTECTED REGION ID(SKAMaster.test_testMode) ENABLED START #
        assert tango_context.device.testMode == ''
        # PROTECTED REGION END #    //  SKAMaster.test_testMode

    # PROTECTED REGION ID(SKAMaster.test_maxCapabilities_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_maxCapabilities_decorators
    def test_maxCapabilities(self, tango_context):
        """Test for maxCapabilities"""
        # PROTECTED REGION ID(SKAMaster.test_maxCapabilities) ENABLED START #
        assert tango_context.device.maxCapabilities == ('',)
        # PROTECTED REGION END #    //  SKAMaster.test_maxCapabilities

    # PROTECTED REGION ID(SKAMaster.test_availableCapabilities_decorators) ENABLED START #
    # PROTECTED REGION END #    //  SKAMaster.test_availableCapabilities_decorators
    def test_availableCapabilities(self, tango_context):
        """Test for availableCapabilities"""
        # PROTECTED REGION ID(SKAMaster.test_availableCapabilities) ENABLED START #
        assert tango_context.device.availableCapabilities == ('',)
        # PROTECTED REGION END #    //  SKAMaster.test_availableCapabilities



######################################################################################### # -*- coding: utf-8 -*- # # This file is part of the SKAMaster project # # # ######################################################################################### Contain the tests for the SKAMaster. # Path # Imports # PROTECTED REGION ID(SKAMaster.test_additional_imports) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_additional_imports # Device test case # PROTECTED REGION ID(SKAMaster.test_SKAMaster_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_SKAMaster_decorators Test case for packet generation. Mock external libraries. # Example : Mock numpy # cls.numpy = SKAMaster.numpy = MagicMock() # PROTECTED REGION ID(SKAMaster.test_mocking) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_mocking # Test the properties # PROTECTED REGION ID(SKAMaster.test_properties) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_properties # PROTECTED REGION ID(SKAMaster.test_State_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_State_decorators Test for State # PROTECTED REGION ID(SKAMaster.test_State) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_State # PROTECTED REGION ID(SKAMaster.test_Status_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_Status_decorators Test for Status # PROTECTED REGION ID(SKAMaster.test_Status) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_Status # PROTECTED REGION ID(SKAMaster.test_GetMetrics_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_GetMetrics_decorators Test for GetMetrics # PROTECTED REGION ID(SKAMaster.test_GetMetrics) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_GetMetrics # PROTECTED REGION ID(SKAMaster.test_ToJson_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_ToJson_decorators Test for ToJson # PROTECTED REGION ID(SKAMaster.test_ToJson) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_ToJson # PROTECTED REGION ID(SKAMaster.test_GetVersionInfo_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_GetVersionInfo_decorators Test for GetVersionInfo # PROTECTED REGION ID(SKAMaster.test_GetVersionInfo) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_GetVersionInfo # PROTECTED REGION ID(SKAMaster.test_isCapabilityAchievable_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_isCapabilityAchievable_decorators Test for isCapabilityAchievable # PROTECTED REGION ID(SKAMaster.test_isCapabilityAchievable) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_isCapabilityAchievable # PROTECTED REGION ID(SKAMaster.test_Reset_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_Reset_decorators Test for Reset # PROTECTED REGION ID(SKAMaster.test_Reset) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_Reset # PROTECTED REGION ID(SKAMaster.test_elementLoggerAddress_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_elementLoggerAddress_decorators Test for elementLoggerAddress # PROTECTED REGION ID(SKAMaster.test_elementLoggerAddress) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_elementLoggerAddress # PROTECTED REGION ID(SKAMaster.test_elementAlarmAddress_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_elementAlarmAddress_decorators Test for elementAlarmAddress # PROTECTED REGION ID(SKAMaster.test_elementAlarmAddress) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_elementAlarmAddress # PROTECTED REGION ID(SKAMaster.test_elementTelStateAddress_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_elementTelStateAddress_decorators Test for elementTelStateAddress # PROTECTED REGION ID(SKAMaster.test_elementTelStateAddress) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_elementTelStateAddress # PROTECTED REGION ID(SKAMaster.test_elementDatabaseAddress_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_elementDatabaseAddress_decorators Test for elementDatabaseAddress # PROTECTED REGION ID(SKAMaster.test_elementDatabaseAddress) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_elementDatabaseAddress # PROTECTED REGION ID(SKAMaster.test_buildState_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_buildState_decorators Test for buildState # PROTECTED REGION ID(SKAMaster.test_buildState) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_buildState # PROTECTED REGION ID(SKAMaster.test_versionId_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_versionId_decorators Test for versionId # PROTECTED REGION ID(SKAMaster.test_versionId) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_versionId # PROTECTED REGION ID(SKAMaster.test_centralLoggingLevel_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_centralLoggingLevel_decorators Test for centralLoggingLevel # PROTECTED REGION ID(SKAMaster.test_centralLoggingLevel) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_centralLoggingLevel # PROTECTED REGION ID(SKAMaster.test_elementLoggingLevel_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_elementLoggingLevel_decorators Test for elementLoggingLevel # PROTECTED REGION ID(SKAMaster.test_elementLoggingLevel) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_elementLoggingLevel # PROTECTED REGION ID(SKAMaster.test_storageLoggingLevel_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_storageLoggingLevel_decorators Test for storageLoggingLevel # PROTECTED REGION ID(SKAMaster.test_storageLoggingLevel) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_storageLoggingLevel # PROTECTED REGION ID(SKAMaster.test_healthState_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_healthState_decorators Test for healthState # PROTECTED REGION ID(SKAMaster.test_healthState) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_healthState # PROTECTED REGION ID(SKAMaster.test_adminMode_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_adminMode_decorators Test for adminMode # PROTECTED REGION ID(SKAMaster.test_adminMode) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_adminMode # PROTECTED REGION ID(SKAMaster.test_controlMode_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_controlMode_decorators Test for controlMode # PROTECTED REGION ID(SKAMaster.test_controlMode) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_controlMode # PROTECTED REGION ID(SKAMaster.test_simulationMode_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_simulationMode_decorators Test for simulationMode # PROTECTED REGION ID(SKAMaster.test_simulationMode) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_simulationMode # PROTECTED REGION ID(SKAMaster.test_testMode_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_testMode_decorators Test for testMode # PROTECTED REGION ID(SKAMaster.test_testMode) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_testMode # PROTECTED REGION ID(SKAMaster.test_maxCapabilities_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_maxCapabilities_decorators Test for maxCapabilities # PROTECTED REGION ID(SKAMaster.test_maxCapabilities) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_maxCapabilities # PROTECTED REGION ID(SKAMaster.test_availableCapabilities_decorators) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_availableCapabilities_decorators Test for availableCapabilities # PROTECTED REGION ID(SKAMaster.test_availableCapabilities) ENABLED START # # PROTECTED REGION END #    //  SKAMaster.test_availableCapabilities