def test_get_default_config(self):
        ext = Extension()

        config = ext.get_default_config()

        self.assertIn('[IRControl]', config)
        self.assertIn('enabled = true', config)
Exemple #2
0
    def test_get_default_config(self):
        ext = Extension()

        config = ext.get_default_config()

        self.assertIn('[IRControl]', config)
        self.assertIn('enabled = true', config)
    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)
    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)
    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)
Exemple #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)
    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)
    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)