Esempio n. 1
0
 def test_show_cursor_windows(self):
     g = Game(scores_file=None, store_file=None, clear_screen=True)
     self.setWindows(g)
     g.hideCursor()
     g.showCursor()
     # these don't do anything for now
     self.assertEqual(sys.stdout.read(), '')
Esempio n. 2
0
 def test_show_cursor_windows(self):
     g = Game(scores_file=None, store_file=None, clear_screen=True)
     self.setWindows(g)
     g.hideCursor()
     g.showCursor()
     # these don't do anything for now
     self.assertEqual(sys.stdout.read(), '')
Esempio n. 3
0
 def test_show_cursor_no_clear_screen_linux(self):
     g = Game(scores_file=None, store_file=None, clear_screen=False)
     self.setWindows(g, False)
     g.hideCursor()
     g.showCursor()
     self.assertEqual(sys.stdout.read(), '\033[?25h')
Esempio n. 4
0
 def test_show_cursor_no_clear_screen_linux(self):
     g = Game(scores_file=None, store_file=None, clear_screen=False)
     self.setWindows(g, False)
     g.hideCursor()
     g.showCursor()
     self.assertEqual(sys.stdout.read(), '\033[?25h')