Exemplo n.º 1
0
    def test_tlp_version_1_1(self):
        version = "1_1"
        tlpconfig = read_tlp_file_config('unittests/tlp-config-{}'.format(version))
        jsoncategories = get_json_schema_object_from_file('categories', 'configschema/{}.json'.format(version))

        configfilecategories = get_tlp_categories(Gtk.Window(), jsoncategories)
        jsonconfigcount = get_config_count(jsoncategories)

        self.assertEqual(len(configfilecategories), 11)
        self.assertEqual(91, len(tlpconfig))
        self.assertEqual(jsonconfigcount, len(tlpconfig))
Exemplo n.º 2
0
    def test_config_categories(self):
        configfilelist = read_tlp_file_config("/etc/default/tlp")
        configfilecategories = get_tlp_categories(configfilelist)

        self.assertEqual(len(configfilecategories), 12)
Exemplo n.º 3
0
    def test_config_categories(self):
        configfilelist = read_tlp_file_config("/etc/default/tlp")
        configfilecategories = get_tlp_categories(configfilelist)

        self.assertEqual(len(configfilecategories), 12)