'L{reporter._AnsiColorizer.supported} returns C{False} if
C{curses.tigetnum} returns less than 2 supported colors.'

def test_supportedTigetNumNotEnoughColor(self):

    class fakecurses(object, ):
        error = RuntimeError
        def tigetnum(self, value):
            return 1
    sys.modules['curses'] = fakecurses()
    self.assertFalse(reporter._AnsiColorizer.supported(FakeStream()))
