def test_fullscreen_window(self): fakestdout = StringIO() window = FullscreenWindow(fakestdout) window.write("hi") fakestdout.seek(0) self.assertEqual(fakestdout.read(), "hi")
def test_fullscreen_window(self): fakestdout = StringIO() window = FullscreenWindow(fakestdout) window.write('hi') fakestdout.seek(0) self.assertEqual(fakestdout.read(), 'hi')