Esempio n. 1
0
    def test_is_switchboard_no_option(self):
        device = Device()
        device.options = {}

        assert_that(is_not(device.is_switchboard()))
Esempio n. 2
0
    def test_is_switchboard_option_false(self):
        device = Device()
        device.options = {'switchboard': False}

        assert_that(is_not(device.is_switchboard()))
Esempio n. 3
0
    def test_is_switchboard_no_plugin(self):
        device = Device()

        assert_that(is_not(device.is_switchboard()))
Esempio n. 4
0
    def test_is_switchboard_option_true(self):
        device = Device()
        device.options = {'switchboard': True}

        assert_that(device.is_switchboard())
Esempio n. 5
0
    def test_is_switchboard_plugin_name(self):
        device = Device()
        device.plugin = 'xivo-aastra-switchboard'

        assert_that(device.is_switchboard())