Exemple #1
0
 def test_temp_get(self):
     key = uuid.uuid4().hex
     config = Configuration("pyfarm.core")
     config[key] = "$temp/bar"
     self.assertEqual(config.get(key), config.tempdir + "/bar")
Exemple #2
0
 def test_get_default_behavior(self):
     key = uuid.uuid4().hex
     config = Configuration("pyfarm.core")
     self.assertIsNone(config.get(key))