--- __init__.py.old.py	2008-03-28 20:53:09.078125000 -0400
+++ __init__.py	2008-03-28 20:53:26.296875000 -0400
@@ -28,13 +28,14 @@
 pkg_resources.require('Paste')
 pkg_resources.require('PasteScript')
 
-test_file = os.path.join(conf_dir, 'test.ini')
+from pylons import config
+config_filename = config["global_conf"]["__file__"]
+test_file = os.path.join(conf_dir, config_filename)
 cmd = paste.script.appinstall.SetupCommand('setup-app')
 cmd.run([test_file])
 
 class TestController(TestCase):
-
     def __init__(self, *args, **kwargs):
-        wsgiapp = loadapp('config:test.ini', relative_to=conf_dir)
+        wsgiapp = loadapp('config:%s' % config_filename, relative_to=conf_dir)
         self.app = paste.fixture.TestApp(wsgiapp)
         TestCase.__init__(self, *args, **kwargs)
