summaryrefslogtreecommitdiff
path: root/repoze/bfg/tests/test_path.py
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/tests/test_path.py')
-rw-r--r--repoze/bfg/tests/test_path.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/repoze/bfg/tests/test_path.py b/repoze/bfg/tests/test_path.py
index a6ff94327..8522eb387 100644
--- a/repoze/bfg/tests/test_path.py
+++ b/repoze/bfg/tests/test_path.py
@@ -129,6 +129,10 @@ class TestPackageName(unittest.TestCase):
module = DummyPackageOrModule(test_path)
result = self._callFUT(module)
self.assertEqual(result, 'repoze.bfg.tests')
+
+ def test_it_None(self):
+ result = self._callFUT(None)
+ self.assertEqual(result, '__main__')
class DummyPackageOrModule:
def __init__(self, real_package_or_module, raise_exc=None):