Exemplo n.º 1
0
 def test_disable_value(self):
     name = "enable_kodi"
     recalSettings.save(name, "1")
     loaded = recalSettings.load(name)
     self.assertEquals("1", loaded)
     recalSettings.disable(name)
     loaded = recalSettings.load(name)
     self.assertEquals(None, loaded)
Exemplo n.º 2
0
    def test_write_disabled_value(self):
        name = "enable_kodi"
        loaded = recalSettings.load(name)
        self.assertEquals(None, loaded)

        recalSettings.save(name, "anewval")
        loaded = recalSettings.load(name)
        self.assertEquals("anewval", loaded)

        recalSettings.save(name, "1")
        loaded = recalSettings.load(name)
        self.assertEquals("1", loaded)
Exemplo n.º 3
0
 def test_ratio_with_slash(self):
     name = "nes.ratio"
     loaded = recalSettings.load(name)
     self.assertEquals("16/9", loaded)
Exemplo n.º 4
0
 def test_write_new_value(self):
     name = "hello"
     recalSettings.save(name, "thehellovalue")
     loaded = recalSettings.load(name)
     self.assertEquals("thehellovalue", loaded)
Exemplo n.º 5
0
 def test_default_value(self):
     name = "idonotexists"
     loaded = recalSettings.load(name, "default")
     self.assertEquals("default", loaded)
Exemplo n.º 6
0
 def test_load_enabled_value(self):
     name = "game_hdmi_mode"
     loaded = recalSettings.load(name)
     self.assertEquals("4", loaded)
Exemplo n.º 7
0
 def test_load_disabled_value_return_none(self):
     name = "enable_kodi"
     loaded = recalSettings.load(name)
     self.assertEquals(None, loaded)
Exemplo n.º 8
0
 def test_load_empty_value_should_return_none(self):
     name = "I dont exists"
     loaded = recalSettings.load(name)
     self.assertEquals(None, loaded)