diff options
Diffstat (limited to 'mock/tests/testsupport.py')
-rw-r--r-- | mock/tests/testsupport.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mock/tests/testsupport.py b/mock/tests/testsupport.py new file mode 100644 index 0000000..4882572 --- /dev/null +++ b/mock/tests/testsupport.py @@ -0,0 +1,14 @@ +# Tests to make sure helpers we backport are actually working! +from unittest import TestCase + +from .support import uncache + + +class TestUncache(TestCase): + + def test_cant_uncache_sys(self): + with self.assertRaises(ValueError): + with uncache('sys'): pass + + def test_uncache_non_existent(self): + with uncache('mock.tests.support.bad'): pass |