Exemplo n.º 1
0
 def test_exists(self):
     self.assertTrue(exists(PRESETS_INI))
     self.assertFalse(exists(getFilename(".fubar-non-existent")))
Exemplo n.º 2
0
 def test_exists(self):
     self.assertTrue(exists(PRESETS_INI))
     self.assertFalse(exists(getFilename(".fubar-non-existent")))
Exemplo n.º 3
0
 def test_get_filename(self):
     self.assertTrue(os.path.isfile(getFilename(PRESETS_INI)))
Exemplo n.º 4
0
 def test_get_filename(self):
     self.assertTrue(os.path.isfile(getFilename(PRESETS_INI)))
Exemplo n.º 5
0
 def test_config_builtin_presets(self):
     parser = get_configuration(getFilename(PRESETS_INI))
     # in the built-in presets.ini, we don't want anything but presets:
     for section in parser.sections():
         self.assertTrue(section.startswith("preset:"),
                         "section starts with preset:")
Exemplo n.º 6
0
 def test_get_configuration(self):
     parser = get_configuration(getFilename(PRESETS_INI))
     # TODO: this is not a good test. Improve!
     self.assertFalse(parser.has_section("dyndnsc"))
Exemplo n.º 7
0
 def test_config_builtin_presets(self):
     parser = get_configuration(getFilename(PRESETS_INI))
     # in the built-in presets.ini, we don't want anything but presets:
     for section in parser.sections():
         self.assertTrue(
             section.startswith("preset:"), "section starts with preset:")
Exemplo n.º 8
0
 def test_get_configuration(self):
     parser = get_configuration(getFilename(PRESETS_INI))
     # TODO: this is not a good test. Improve!
     self.assertFalse(parser.has_section("dyndnsc"))