summaryrefslogtreecommitdiff
path: root/mock/tests/testsupport.py
blob: 4882572b39344bff338251b52e85cb3e839e0132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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