From f372137242d782aa390111010a0d1bc767de8192 Mon Sep 17 00:00:00 2001 From: Yoann Roman Date: Fri, 7 Jan 2011 18:56:41 -0500 Subject: [PATCH] Fixing tests for configuration changes --- tests/test_conf.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_conf.py b/tests/test_conf.py index 469412c..8842364 100644 --- a/tests/test_conf.py +++ b/tests/test_conf.py @@ -82,6 +82,11 @@ class TestConf(TestCase): self.assertTrue('__confdir__' in dir(conf)) + def test_config_file(self): + conf = configuration.initconf() + + self.assertTrue('__conffile__' in dir(conf)) + def test_config_repr(self): conf = configuration.Config({'a':1}) self.assertEqual(repr(conf),"Config({'a': 1})") @@ -98,7 +103,7 @@ class TestConf(TestCase): def test_config_illegal_ids(self): conf = configuration.Config({}) conf.update_with_module('bad.module_and_underscore') - self.assertEqual(['__confdir__'], dir(conf)) + self.assertEqual(['__confdir__', '__conffile__'], dir(conf)) def test_config_bad_module(self): conf = configuration.Config({})