'Regression test: Check whether a test run with a failing test
matches a previous run.'

def test_failure(self):

    class TestTest(unittest.TestCase, ):
        def test_foo(self):
            self.assert_(False)
    self._try_test_run(TestTest, '<testsuite    errors="0"    failures="1"    name="unittest.suite.TestSuite"    tests="1"    time="0.000"><testcase    classname="test.test_xmlrunner.TestTest"    name="test_foo"    time="0.000"><failure    type="AssertionError">Foobar</failure></testcase><system-out>&lt;![CDATA[\n\n]]&gt;</system-out><system-err>&lt;![CDATA[\n\n]]&gt;</system-err></testsuite>')
