def test_supportedTigetNumWrongError(self):
        class fakecurses(object):
            error = RuntimeError

            def tigetnum(self, value):
                raise ValueError()

        sys.modules['curses'] = fakecurses()
        self.assertFalse(reporter._AnsiColorizer.supported(FakeStream()))
Tests multiple levels of non-public classes overriding public methods from superclasses
dataset/ETHPy150Open twisted/twisted/twisted/trial/test/test_reporter.py/AnsiColorizerTests.test_supportedTigetNumWrongError--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_java_visibility.py/VisibilityTest.test_extending_multiple_hidden_classes