MCPcopy Index your code
hub / github.com/python/cpython / test_has_colors

Method test_has_colors

Lib/test/test_curses.py:886–888  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

884 return (-1, -2**31 - 1, 2**31, -2**63 - 1, 2**63, 2**64)
885
886 def test_has_colors(self):
887 self.assertIsInstance(curses.has_colors(), bool)
888 self.assertIsInstance(curses.can_change_color(), bool)
889
890 def test_start_color(self):
891 if not curses.has_colors():

Callers

nothing calls this directly

Calls 2

assertIsInstanceMethod · 0.80
has_colorsMethod · 0.45

Tested by

no test coverage detected