Example #1
0
    def testClassDescrition(self):
        """Make sure that each test class has a defined docstring outlining
        the purpose of the test."""
        classes_without_docstrings = []
        for test_class_name, test_class in test_generators.enumerate_all_test_classes():
            if test_class.__doc__.strip() == "":
                classes_without_docstrings.append(test_class_name)

        if classes_without_docstrings:
            raise Exception("These classes have no docstrings: %s" % classes_without_docstrings)
    def testClassDescrition(self):
        """Make sure that each test class has a defined docstring outlining
        the purpose of the test."""
        classes_without_docstrings = []
        for test_class_name, test_class in test_generators.enumerate_all_test_classes():
            if test_class.__doc__.strip() == "":
                classes_without_docstrings.append(test_class_name)

        if classes_without_docstrings:
            raise Exception("These classes have no docstrings: %s" %
                            classes_without_docstrings)
 def testPrintClassInformation(self):
     for test_class_name, test_class in test_generators.enumerate_all_test_classes():
         expect_system_exit(
             lambda: test_generators.print_documentation(test_class_name))
 def testPrintClassInformation(self):
     for test_class_name, test_class in test_generators.enumerate_all_test_classes(
     ):
         expect_system_exit(
             lambda: test_generators.print_documentation(test_class_name))