def test_discover_test_with_broken_import(self):

        stdout, stderr = cmd_output(
            'python', '-m', 'testify.test_program', self.broken_import_module,
        )

        T.assert_equal(
            stdout,
            RegexMatcher(
                r'DISCOVERY FAILURE!\n'
                r'There was a problem importing one or more tests:\n\n'
                r'    Traceback \(most recent call last\):\n'
                r'      File .+, line \d+, in discover\n'
                r"        mod = __import__\(what, fromlist=\[str\(\'__trash\'\)\]\)\n"
                r'      File .+, line \d+, in <module>\n'
                r'        import non_existent_module\n'
                r"    ImportError: No module named '?non_existent_module'?\n\n"
                r"No tests were discovered \(tests must subclass TestCase and test methods must begin with 'test'\).\n"
                r'ERROR.  0 tests / 0 cases: 0 passed, 0 failed.  \(Total test time \d+\.\d+s\)\n'
            ),
        )

        T.assert_equal(
            stderr,
            RegexMatcher(
                r'Traceback \(most recent call last\):\n'
                r'  File .+, line \d+, in discover\n'
                r"    mod = __import__\(what, fromlist=\[str\(\'__trash\'\)\]\)\n"
                r'  File .+, line \d+, in <module>\n'
                r'    import non_existent_module\n'
                r"ImportError: No module named '?non_existent_module'?\n"
            ),
        )
Renders the review UI to an HTML string.
dataset/ETHPy150Open Yelp/Testify/test/discovery_failure_test.py/DiscoveryFailureTestCase.test_discover_test_with_broken_import--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/reviews/ui/base.py/ReviewUI.render_to_string