def test_base_mode_open_file(): """ Ensure the the base class returns None to indicate it can't open the file. """ editor = mock.MagicMock() view = mock.MagicMock() bm = BaseMode(editor, view) assert bm.open_file('unused/path') is None
def test_base_mode_open_file(): """ Ensure the the base class returns None to indicate it can't open the file. """ editor = mock.MagicMock() view = mock.MagicMock() bm = BaseMode(editor, view) assert bm.open_file('unused/path') is None
def test_base_mode_open_file(): """ Ensure the the base class returns None to indicate it can't open the file. """ editor = mock.MagicMock() view = mock.MagicMock() bm = BaseMode(editor, view) text, newline = bm.open_file("unused/path") assert text is None assert newline is None