From 6cc96689989a7781f1da4ae05b0fbc38e6c8fdb9 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 29 Jun 2009 03:16:10 +0000 Subject: Add changelog entry for resource directive. Rejigger error detection ordering. --- repoze/bfg/tests/test_zcml.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'repoze/bfg/tests') diff --git a/repoze/bfg/tests/test_zcml.py b/repoze/bfg/tests/test_zcml.py index 875628f5f..a8eec3d48 100644 --- a/repoze/bfg/tests/test_zcml.py +++ b/repoze/bfg/tests/test_zcml.py @@ -864,12 +864,14 @@ class TestResourceDirective(unittest.TestCase): def test_override_directory_with_file(self): from zope.configuration.exceptions import ConfigurationError context = DummyContext() - self.assertRaises(ConfigurationError, self._callFUT, context, 'a/', 'a') + self.assertRaises(ConfigurationError, self._callFUT, context, + 'a:foo/', 'a:foo.pt') def test_override_file_with_directory(self): from zope.configuration.exceptions import ConfigurationError context = DummyContext() - self.assertRaises(ConfigurationError, self._callFUT, context, 'a', 'a/') + self.assertRaises(ConfigurationError, self._callFUT, context, + 'a:foo.pt', 'a:foo/') def test_no_colons(self): from repoze.bfg.zcml import _override -- cgit v1.2.3