awips2/pythonPackages/nose/unit_tests/test_id_plugin.py
root 9f19e3f712 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

20 lines
529 B
Python
Executable file

import unittest
from nose.config import Config
from nose.plugins.builtin import TestId
import mock
class TestTestIdPlugin(unittest.TestCase):
def test_default_id_file_is_in_working_dir(self):
tid = TestId()
c = Config()
opt = mock.Bucket()
opt.testIdFile = '.noseids'
tid.configure(opt, c)
print tid.idfile
assert tid.idfile.startswith(c.workingDir), \
"%s is not under %s" % (tid.idfile, c.workingDir)
if __name__ == '__main__':
unittest.main()