Example #1
0
 def test_write_new_value(self):
     name = "UnexistingVal"
     esSettings.save(name, "false")
     loaded = esSettings.load(name)
     self.assertEquals("false", loaded)
     esSettings.save(name, "true")
     loaded = esSettings.load(name)
     self.assertEquals("true", loaded)
Example #2
0
 def test_write_value(self):
     name = "Smooth"
     esSettings.save(name, "false")
     loaded = esSettings.load(name)
     self.assertEquals("false", loaded)
     esSettings.save(name, "true")
     loaded = esSettings.load(name)
     self.assertEquals("true", loaded)
Example #3
0
 def test_load_value_return_a_value(self):
     name = "Smooth"
     loaded = esSettings.load(name)
     self.assertEquals("true", loaded)
Example #4
0
 def test_load_default(self):
     name = "I do not exists"
     loaded = esSettings.load(name, "default")
     self.assertEquals("default", loaded)
Example #5
0
 def test_load_empty_value_should_return_none(self):
     name = "I dont exists"
     loaded = esSettings.load(name)
     self.assertEquals(None, loaded)