<commit_before>from __future__ import unicode_literals

import unittest

from mopidy_yamaha import Extension


class ExtensionTest(unittest.TestCase):

    def test_get_default_config(self):
        ext = Extension()

        config = ext.get_default_config()

        self.assertIn('[yamaha]', config)
        self.assertIn('enabled = true', config)

    def test_get_config_schema(self):
        ext = Extension()

        schema = ext.get_config_schema()

        self.assertIn('enabled', schema)
        self.assertIn('party_mode', schema)<commit_msg>Assert host and source fields in config schema<commit_after>from __future__ import unicode_literals

import unittest

from mopidy_yamaha import Extension


class ExtensionTest(unittest.TestCase):

    def test_get_default_config(self):
        ext = Extension()

        config = ext.get_default_config()

        self.assertIn('[yamaha]', config)
        self.assertIn('enabled = true', config)

    def test_get_config_schema(self):
        ext = Extension()

        schema = ext.get_config_schema()

        self.assertIn('enabled', schema)
        self.assertIn('host', schema)
        self.assertIn('source', schema)
        self.assertIn('party_mode', schema)
{'fraction_non_alphanumeric': 0.09828009828009827, 'fraction_numerical': 0.0, 'mean_word_length': 3.3333333333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5289958', 'n_tokens_mistral': 364, 'n_tokens_neox': 346, 'n_words': 76}