Test providing a non-existant directory as a exclude-dir

This commit is contained in:
Kelsey Prantis 2012-05-04 15:25:47 -06:00
parent 2c17f9e911
commit e6ac4f746c
1 changed files with 12 additions and 0 deletions

View File

@ -59,5 +59,17 @@ class TestNoseExcludeDirs_Relative_Args_Mixed(PluginTester, unittest.TestCase):
def test_proper_dirs_omitted(self):
assert "FAILED" not in self.output
class TestNoseExcludeDirs_Arg_Does_Not_Exist(PluginTester, unittest.TestCase):
"""Test nose-exclude directories for a directory that doesn't exist.
"""
activate = "--exclude-dir=test_dirs/build"
args = ["--exclude-dir=test_dirs/test_not_me \n --exclude-dir=test_dirs/test_i_dont_exist"]
plugins = [NoseExclude()]
suitepath = os.path.join(os.getcwd(), 'test_dirs')
def test_proper_dirs_omitted(self):
assert "FAILED" not in self.output
if __name__ == '__main__':
unittest.main()