Beispiel #1
0
 def test_exists(self):
     self.assertTrue(exists(PRESETS_INI))
     self.assertFalse(exists(getFilename(".fubar-non-existent")))
 def test_exists(self):
     self.assertTrue(exists(PRESETS_INI))
     self.assertFalse(exists(getFilename(".fubar-non-existent")))
Beispiel #3
0
 def test_get_filename(self):
     self.assertTrue(os.path.isfile(getFilename(PRESETS_INI)))
 def test_get_filename(self):
     self.assertTrue(os.path.isfile(getFilename(PRESETS_INI)))
Beispiel #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:")
Beispiel #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"))
Beispiel #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:")
Beispiel #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"))