/unit_tests/test_id_plugin.py
https://bitbucket.org/jpellerin/nose/ · Python · 20 lines · 16 code · 4 blank · 0 comment · 1 complexity · caf34affe9d0326ffb242a9942f124cd MD5 · raw 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()