summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test.py b/test.py
index 236aa0c..ecbb74d 100755
--- a/test.py
+++ b/test.py
@@ -875,6 +875,9 @@ class MockerTest(unittest.TestCase):
module = self.mocker.proxy("os.path", name="mock")
self.assertEquals(module.__mocker_name__, "mock")
+ def test_proxy_with_unexistent_module(self):
+ self.assertRaises(ImportError, self.mocker.proxy, "unexistent.module")
+
def test_replace(self):
from os import path
obj = object()