From 3ac75eeca6444367adef11c640a7f07ec4d94ab5 Mon Sep 17 00:00:00 2001 From: ZyX Date: Thu, 10 Jul 2014 22:32:41 +0400 Subject: [PATCH] Add window_title tests --- tests/test_segments.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_segments.py b/tests/test_segments.py index 95a38782..441d6951 100644 --- a/tests/test_segments.py +++ b/tests/test_segments.py @@ -667,6 +667,13 @@ class TestVim(TestCase): self.assertEqual(vim.file_type(pl=pl, segment_info=segment_info), [{'divider_highlight_group': 'background:divider', 'contents': 'python'}]) + def test_window_title(self): + pl = Pl() + segment_info = vim_module._get_segment_info() + self.assertEqual(vim.window_title(pl=pl, segment_info=segment_info), None) + with vim_module._with('wvars', quickfix_title='Abc'): + self.assertEqual(vim.window_title(pl=pl, segment_info=segment_info), 'Abc') + def test_line_percent(self): pl = Pl() segment_info = vim_module._get_segment_info()