diff options
| author | Chris McDonough <chrism@plope.com> | 2011-08-19 01:43:44 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-08-19 01:43:44 -0400 |
| commit | eb2a57640261c3f43fe8fc17a2d67e7e4bc3cef5 (patch) | |
| tree | 9dbe56ac543ea09c932bad84e92cd62c43cedfbe | |
| parent | 9f7f4f5219335e8bca108018c699ffdda8f40425 (diff) | |
| download | pyramid-eb2a57640261c3f43fe8fc17a2d67e7e4bc3cef5.tar.gz pyramid-eb2a57640261c3f43fe8fc17a2d67e7e4bc3cef5.tar.bz2 pyramid-eb2a57640261c3f43fe8fc17a2d67e7e4bc3cef5.zip | |
coverage
| -rw-r--r-- | pyramid/tests/test_config/test_init.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pyramid/tests/test_config/test_init.py b/pyramid/tests/test_config/test_init.py index 4f880d7f4..c113d240d 100644 --- a/pyramid/tests/test_config/test_init.py +++ b/pyramid/tests/test_config/test_init.py @@ -279,6 +279,14 @@ class ConfiguratorTests(unittest.TestCase): newconfig = config.with_package(pyramid.tests) self.assertEqual(newconfig.package, pyramid.tests) + def test_with_package_context_is_None(self): + import pyramid.tests + config = self._makeOne() + config._ctx = None + newconfig = config.with_package(pyramid.tests) + self.assertEqual(newconfig.package, pyramid.tests) + self.assertEqual(config._ctx.package, None) + def test_maybe_dotted_string_success(self): import pyramid.tests config = self._makeOne() |
