Пример #1
0
    def test_get_default_config(self):
        ext = Extension()

        config = ext.get_default_config()

        self.assertIn('[IRControl]', config)
        self.assertIn('enabled = true', config)
Пример #2
0
    def test_get_default_config(self):
        ext = Extension()

        config = ext.get_default_config()

        self.assertIn('[IRControl]', config)
        self.assertIn('enabled = true', config)
Пример #3
0
    def test_get_default_config(self):
        ext = Extension()

        config = ext.get_default_config()

        self.assertIn('[IRControl]', config)
        self.assertIn('enabled = true', config)
        self.assertIn('playlist_uri_template = m3u:playlist{0}.m3u', config)
Пример #4
0
    def test_get_default_config(self):
        ext = Extension()

        config = ext.get_default_config()

        self.assertIn('[IRControl]', config)
        self.assertIn('enabled = true', config)
        self.assertIn('playlist_uri_template = m3u:playlist{0}.m3u', config)
Пример #5
0
    def test_get_config_schema(self):
        ext = Extension()

        schema = ext.get_config_schema()
        self.assertIn('mute', schema)
        self.assertIn('playpause', schema)
        self.assertIn('next', schema)
        self.assertIn('previous', schema)
        self.assertIn('stop', schema)
        self.assertIn('volumedown', schema)
        self.assertIn('volumeup', schema)
Пример #6
0
    def test_get_config_schema(self):
        ext = Extension()

        schema = ext.get_config_schema()
        self.assertIn('mute', schema)
        self.assertIn('playpause', schema)
        self.assertIn('next', schema)
        self.assertIn('previous', schema)
        self.assertIn('stop', schema)
        self.assertIn('volumedown', schema)
        self.assertIn('volumeup', schema)
Пример #7
0
    def test_get_config_schema(self):
        ext = Extension()

        schema = ext.get_config_schema()
        self.assertIn('mute', schema)
        self.assertIn('playpause', schema)
        self.assertIn('next', schema)
        self.assertIn('previous', schema)
        self.assertIn('stop', schema)
        self.assertIn('volumedown', schema)
        self.assertIn('volumeup', schema)

        self.assertIn('playlist_uri_template', schema)
        for i in range(10):
            self.assertIn('num{0}'.format(i), schema)
Пример #8
0
    def test_get_config_schema(self):
        ext = Extension()

        schema = ext.get_config_schema()
        self.assertIn('mute', schema)
        self.assertIn('playpause', schema)
        self.assertIn('next', schema)
        self.assertIn('previous', schema)
        self.assertIn('stop', schema)
        self.assertIn('volumedown', schema)
        self.assertIn('volumeup', schema)

        self.assertIn('playlist_uri_template', schema)
        for i in range(10):
            self.assertIn('num{0}'.format(i), schema)