Add test for backwards compat

This commit is contained in:
Jesse Weinstein 2016-01-06 01:34:52 -08:00
parent d4ccc10667
commit 7370cdfd39

View file

@ -105,6 +105,15 @@ class PlayPluginTest(unittest.TestCase, TestHelper):
self.open_mock.assert_not_called()
def test_warning_threshold_backwards_compat(self):
self.config['play']['warning_treshold'] = 1
self.add_item(title='another NiceTitle')
with control_stdin("a"):
self.run_command('play', 'nice')
self.open_mock.assert_not_called()
def test_command_failed(self):
self.open_mock.side_effect = OSError("some reason")