mirror of
https://github.com/lowobservable/oec.git
synced 2026-03-05 19:09:04 +00:00
Add assertion for resetting dirty tracking on flush
This commit is contained in:
@@ -63,6 +63,8 @@ class SessionHandleHostTestCase(unittest.TestCase):
|
||||
|
||||
self.assertEqual(self.terminal.display.cursor_index, 8)
|
||||
|
||||
self.assertFalse(self.session.emulator.dirty)
|
||||
|
||||
def test_eof(self):
|
||||
# Arrange
|
||||
self.session.emulator.update = Mock(side_effect=EOFError)
|
||||
|
||||
@@ -35,6 +35,8 @@ class SessionHandleHostTestCase(unittest.TestCase):
|
||||
|
||||
terminal.display.move_cursor.assert_called_with(row=0, column=3)
|
||||
|
||||
self.assertFalse(session.vt100_screen.dirty)
|
||||
|
||||
class SessionHandleKeyTestCase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.terminal = Mock()
|
||||
|
||||
Reference in New Issue
Block a user