PageRenderTime 27ms CodeModel.GetById 17ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 1ms

/unit_tests/test_issue_065.py

https://bitbucket.org/jpellerin/nose/
Python | 20 lines | 15 code | 5 blank | 0 comment | 2 complexity | 2acc149399512f1d266c8b5c3d5ee704 MD5 | raw file
 1import os
 2from nose import loader
 3import unittest
 4
 5support = os.path.join(os.path.dirname(__file__), 'support')
 6
 7class TestIssue065(unittest.TestCase):
 8    def test_dict_wrapper_instance_not_loaded(self):
 9        wd = os.path.join(support, 'issue065')
10        l = loader.TestLoader() #workingDir=wd)
11        tests = l.loadTestsFromDir(wd)
12        tests = list(tests)
13        self.assertEqual(len(tests), 1)
14        tests = list(tests[0])
15        assert not tests, "Tests were loaded from module with no tests"
16        
17
18
19if __name__ == '__main__':
20    unittest.main()