Rename a unit test and clarify its purpose in docs

This commit is contained in:
Bo Maryniuk 2017-10-30 13:47:57 +01:00
parent c8452476ac
commit b5a80231bd

View File

@ -860,10 +860,10 @@ class FileModuleTestCase(TestCase, LoaderModuleMockMixin):
@skipIf(pytest is None, 'PyTest required for this test')
@patch('os.path.realpath', MagicMock())
@patch('os.path.isfile', MagicMock(return_value=True))
def test_line_modecheck(self):
def test_line_modecheck_failure(self):
'''
Test for file.line ``mode=insert``.
Issue #38670
Test for file.line for empty or wrong mode.
Calls unknown or empty mode and expects failure.
:return:
'''
for mode, err_msg in [(None, 'How to process the file'), ('nonsense', 'Unknown mode')]: