Changeset 135 for branches/mk/tests
- Timestamp:
- 08/09/06 05:45:17 (6 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/mk/tests/unit/test_index_use_test_framework.py
r110 r135 8 8 9 9 from cheesecake.cheesecake_index import Cheesecake 10 from cheesecake.cheesecake_index import IndexU seTestFramework10 from cheesecake.cheesecake_index import IndexUnitTested 11 11 from cheesecake import logger 12 12 … … 51 51 """ 52 52 53 class TestIndexU seTestFramework(object):53 class TestIndexUnitTested(object): 54 54 def setUp(self): 55 55 self.sandbox_dir = tempfile.mkdtemp() … … 60 60 61 61 def test_doctest(self): 62 "Test u se_test_frameworkindex with package that uses doctest."62 "Test unit_tested index with package that uses doctest." 63 63 def setup(project_dir): 64 64 main_filename = os.path.join(project_dir, 'main.py') … … 100 100 asserts(cheesecake) 101 101 102 index = IndexU seTestFramework()102 index = IndexUnitTested() 103 103 index.compute_with(cheesecake) 104 104 105 # U se of test frameworkshould be discovered and package should get maximum score.105 # Unit tests presence should be discovered and package should get maximum score. 106 106 print "Index: %d/%d -- %s" % (index.value, index.max_value, index.details) 107 107 assert index.value == index.max_value 108 108 109 109 def test_special_filenames_1(self): 110 "Test u se_test_frameworkindex with package that uses test_* filenames."110 "Test unit_tested index with package that uses test_* filenames." 111 111 def setup(project_dir): 112 112 files = ['some_module.py', 'README', 'test_some_module.py'] … … 116 116 117 117 def test_special_filenames_2(self): 118 "Test u se_test_frameworkindex with package that uses *_test filenames."118 "Test unit_tested index with package that uses *_test filenames." 119 119 def setup(project_dir): 120 120 files = ['some_module.py', 'README', 'some_module_test.py'] … … 124 124 125 125 def test_special_methods(self): 126 "Test u se_test_frameworkindex with package that uses setUp/tearDown methods."126 "Test unit_tested index with package that uses setUp/tearDown methods." 127 127 def setup(project_dir): 128 128 test_filename = os.path.join(project_dir, 'do_checks.py') … … 132 132 133 133 def test_unittest_classes(self): 134 "Test u se_test_frameworkindex with package that uses unittest library."134 "Test unit_tested index with package that uses unittest library." 135 135 def setup(project_dir): 136 136 test_filename = os.path.join(project_dir, 'do_checks.py')
