def test_get_description_remove_middle_line(self): with mock.patch('builtins.input', side_effect=["5", "6", "DEL", "7", "8", "EOF"]): self.assertEqual(get_description(), "5\\n7\\n8")
def test_get_description_remove_last_line_and_char(self): with mock.patch('builtins.input', side_effect=["5", "6", "7", "8", "DEL", "EOF"]): self.assertEqual(get_description(), "5\\n6\\n7")